diff --git a/README.md b/README.md index 056235d5..56b4ec3a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Solana SDK library for Go -[![GoDoc](https://pkg.go.dev/badge/github.com/gagliardetto/solana-go?status.svg)](https://pkg.go.dev/github.com/gagliardetto/solana-go@v1.4.0?tab=doc) -[![GitHub tag (latest SemVer pre-release)](https://img.shields.io/github/v/tag/gagliardetto/solana-go?include_prereleases&label=release-tag)](https://github.com/gagliardetto/solana-go/releases) -[![Build Status](https://github.com/gagliardetto/solana-go/workflows/tests/badge.svg?branch=main)](https://github.com/gagliardetto/solana-go/actions?query=branch%3Amain) -[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/gagliardetto/solana-go/main)](https://www.tickgit.com/browse?repo=github.com/gagliardetto/solana-go&branch=main) -[![Go Report Card](https://goreportcard.com/badge/github.com/gagliardetto/solana-go)](https://goreportcard.com/report/github.com/gagliardetto/solana-go) +[![GoDoc](https://pkg.go.dev/badge/github.com/olegfomenko/solana-go?status.svg)](https://pkg.go.dev/github.com/olegfomenko/solana-go@v1.4.0?tab=doc) +[![GitHub tag (latest SemVer pre-release)](https://img.shields.io/github/v/tag/gagliardetto/solana-go?include_prereleases&label=release-tag)](https://github.com/olegfomenko/solana-go/releases) +[![Build Status](https://github.com/olegfomenko/solana-go/workflows/tests/badge.svg?branch=main)](https://github.com/olegfomenko/solana-go/actions?query=branch%3Amain) +[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/olegfomenko/solana-go/main)](https://www.tickgit.com/browse?repo=github.com/olegfomenko/solana-go&branch=main) +[![Go Report Card](https://goreportcard.com/badge/github.com/olegfomenko/solana-go)](https://goreportcard.com/report/github.com/olegfomenko/solana-go) Go library to interface with Solana JSON RPC and WebSocket interfaces. @@ -12,7 +12,7 @@ More contracts to come. **If you're using/developing Solana programs written in [Anchor Framework](https://github.com/project-serum/anchor), you can use [anchor-go](https://github.com/gagliardetto/anchor-go) to generate Golang clients** -**If you're looking for a SERUM library, you can check out [gagliardetto/serum-go](https://github.com/gagliardetto/serum-go) ; [/programs/serum](https://github.com/gagliardetto/solana-go/tree/main/programs/serum) is deprecated.** +**If you're looking for a SERUM library, you can check out [gagliardetto/serum-go](https://github.com/gagliardetto/serum-go) ; [/programs/serum](https://github.com/olegfomenko/solana-go/tree/main/programs/serum) is deprecated.**
@@ -90,7 +90,7 @@ Note ```bash $ cd my-project -$ go get github.com/gagliardetto/solana-go@v1.4.0 +$ go get github.com/olegfomenko/solana-go@v1.4.0 ``` ## Pretty-Print transactions/instructions @@ -122,7 +122,7 @@ fmt.Println(tx.String()) ## SendAndConfirmTransaction -You can wait for a transaction confirmation using the `github.com/gagliardetto/solana-go/rpc/sendAndConfirmTransaction` package tools (for a complete example: [see here](#transfer-sol-from-one-wallet-to-another-wallet)) +You can wait for a transaction confirmation using the `github.com/olegfomenko/solana-go/rpc/sendAndConfirmTransaction` package tools (for a complete example: [see here](#transfer-sol-from-one-wallet-to-another-wallet)) ```go // Send transaction, and wait for confirmation: @@ -153,10 +153,10 @@ import ( "github.com/davecgh/go-spew/spew" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/programs/system" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/text" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/programs/system" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/text" ) func main() { @@ -346,8 +346,8 @@ import ( "net/http" "time" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/jsonrpc" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/jsonrpc" ) func NewHTTPTransport( @@ -414,8 +414,8 @@ import ( "context" "fmt" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -521,13 +521,13 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/programs/system" - "github.com/gagliardetto/solana-go/rpc" - confirm "github.com/gagliardetto/solana-go/rpc/sendAndConfirmTransaction" - "github.com/gagliardetto/solana-go/rpc/jsonrpc" - "github.com/gagliardetto/solana-go/rpc/ws" - "github.com/gagliardetto/solana-go/text" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/programs/system" + "github.com/olegfomenko/solana-go/rpc" + confirm "github.com/olegfomenko/solana-go/rpc/sendAndConfirmTransaction" + "github.com/olegfomenko/solana-go/rpc/jsonrpc" + "github.com/olegfomenko/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/text" ) func main() { @@ -727,9 +727,9 @@ import ( "github.com/davecgh/go-spew/spew" bin "github.com/gagliardetto/binary" - solana "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/programs/token" - "github.com/gagliardetto/solana-go/rpc" + solana "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/programs/token" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -833,8 +833,8 @@ import ( "math/big" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -871,8 +871,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -925,7 +925,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -957,7 +957,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -984,7 +984,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1027,7 +1027,7 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1063,7 +1063,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1101,7 +1101,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1139,7 +1139,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1166,8 +1166,8 @@ import ( "github.com/AlekSi/pointer" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1224,7 +1224,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1265,7 +1265,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1305,8 +1305,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1339,8 +1339,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1378,7 +1378,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1405,7 +1405,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1431,7 +1431,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1467,7 +1467,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1493,7 +1493,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1521,7 +1521,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1549,7 +1549,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1575,7 +1575,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1601,7 +1601,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1628,7 +1628,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1656,7 +1656,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1683,7 +1683,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1709,7 +1709,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1736,7 +1736,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1762,8 +1762,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1797,7 +1797,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1825,7 +1825,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1851,7 +1851,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1877,7 +1877,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1903,7 +1903,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1932,8 +1932,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -1984,8 +1984,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2013,7 +2013,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2040,7 +2040,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2068,8 +2068,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2099,8 +2099,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2127,7 +2127,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2154,7 +2154,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2181,7 +2181,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2217,7 +2217,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2243,8 +2243,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2274,7 +2274,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2301,8 +2301,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2331,8 +2331,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2365,9 +2365,9 @@ import ( "github.com/davecgh/go-spew/spew" 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/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/programs/token" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2418,8 +2418,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2448,8 +2448,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2478,8 +2478,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2531,7 +2531,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2558,7 +2558,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2584,8 +2584,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2614,8 +2614,8 @@ import ( "context" "fmt" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2647,7 +2647,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2673,8 +2673,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { @@ -2728,9 +2728,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { @@ -2790,9 +2790,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { @@ -2852,9 +2852,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { @@ -2905,8 +2905,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { @@ -2939,9 +2939,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { @@ -2980,8 +2980,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { @@ -3015,8 +3015,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/cmd/slnc/cmd/common.go b/cmd/slnc/cmd/common.go index cd07fc94..faaa29f7 100644 --- a/cmd/slnc/cmd/common.go +++ b/cmd/slnc/cmd/common.go @@ -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" ) diff --git a/cmd/slnc/cmd/decoding.go b/cmd/slnc/cmd/decoding.go index 555cd95a..6c274df3 100644 --- a/cmd/slnc/cmd/decoding.go +++ b/cmd/slnc/cmd/decoding.go @@ -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) { diff --git a/cmd/slnc/cmd/get_account.go b/cmd/slnc/cmd/get_account.go index 1086b7ea..61269d2e 100644 --- a/cmd/slnc/cmd/get_account.go +++ b/cmd/slnc/cmd/get_account.go @@ -22,7 +22,7 @@ import ( "encoding/json" "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/spf13/cobra" ) diff --git a/cmd/slnc/cmd/get_balance.go b/cmd/slnc/cmd/get_balance.go index 24a8a32e..6f0aac27 100644 --- a/cmd/slnc/cmd/get_balance.go +++ b/cmd/slnc/cmd/get_balance.go @@ -20,7 +20,7 @@ package cmd import ( "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/spf13/cobra" ) diff --git a/cmd/slnc/cmd/get_program_accounts.go b/cmd/slnc/cmd/get_program_accounts.go index e767ffc1..025e49f9 100644 --- a/cmd/slnc/cmd/get_program_accounts.go +++ b/cmd/slnc/cmd/get_program_accounts.go @@ -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" ) diff --git a/cmd/slnc/cmd/get_spl_token.go b/cmd/slnc/cmd/get_spl_token.go index 8b3d5d9a..390a3253 100644 --- a/cmd/slnc/cmd/get_spl_token.go +++ b/cmd/slnc/cmd/get_spl_token.go @@ -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" ) diff --git a/cmd/slnc/cmd/get_transactions.go b/cmd/slnc/cmd/get_transactions.go index bca0e7f8..8da5fa85 100644 --- a/cmd/slnc/cmd/get_transactions.go +++ b/cmd/slnc/cmd/get_transactions.go @@ -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" ) diff --git a/cmd/slnc/cmd/is_blockhash_valid.go b/cmd/slnc/cmd/is_blockhash_valid.go index 8c8682e3..17876f66 100644 --- a/cmd/slnc/cmd/is_blockhash_valid.go +++ b/cmd/slnc/cmd/is_blockhash_valid.go @@ -17,7 +17,7 @@ package cmd import ( "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/spf13/cobra" ) diff --git a/cmd/slnc/cmd/logging.go b/cmd/slnc/cmd/logging.go index 08bd37f3..3b8902ac 100644 --- a/cmd/slnc/cmd/logging.go +++ b/cmd/slnc/cmd/logging.go @@ -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" @@ -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() { diff --git a/cmd/slnc/cmd/request_airdrop.go b/cmd/slnc/cmd/request_airdrop.go index fcc5ed7a..a2ebe03d 100644 --- a/cmd/slnc/cmd/request_airdrop.go +++ b/cmd/slnc/cmd/request_airdrop.go @@ -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" ) diff --git a/cmd/slnc/cmd/serum_get_market.go b/cmd/slnc/cmd/serum_get_market.go index 31ae8aaa..fd8017e4 100644 --- a/cmd/slnc/cmd/serum_get_market.go +++ b/cmd/slnc/cmd/serum_get_market.go @@ -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" ) diff --git a/cmd/slnc/cmd/serum_list_markets.go b/cmd/slnc/cmd/serum_list_markets.go index ba721ed2..69f1cdbd 100644 --- a/cmd/slnc/cmd/serum_list_markets.go +++ b/cmd/slnc/cmd/serum_list_markets.go @@ -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" ) diff --git a/cmd/slnc/cmd/token_get_mint.go b/cmd/slnc/cmd/token_get_mint.go index 0c00bf14..6127f2e4 100644 --- a/cmd/slnc/cmd/token_get_mint.go +++ b/cmd/slnc/cmd/token_get_mint.go @@ -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" ) diff --git a/cmd/slnc/cmd/token_list_mints.go b/cmd/slnc/cmd/token_list_mints.go index 4cf1d12f..5537f9fe 100644 --- a/cmd/slnc/cmd/token_list_mints.go +++ b/cmd/slnc/cmd/token_list_mints.go @@ -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" ) diff --git a/cmd/slnc/cmd/token_registry_get.go b/cmd/slnc/cmd/token_registry_get.go index da99b1c8..7c623144 100644 --- a/cmd/slnc/cmd/token_registry_get.go +++ b/cmd/slnc/cmd/token_registry_get.go @@ -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" ) diff --git a/cmd/slnc/cmd/token_registry_list.go b/cmd/slnc/cmd/token_registry_list.go index 94b73015..a074354a 100644 --- a/cmd/slnc/cmd/token_registry_list.go +++ b/cmd/slnc/cmd/token_registry_list.go @@ -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" ) diff --git a/cmd/slnc/cmd/token_registry_register.go b/cmd/slnc/cmd/token_registry_register.go index 23550938..e88ad959 100644 --- a/cmd/slnc/cmd/token_registry_register.go +++ b/cmd/slnc/cmd/token_registry_register.go @@ -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" ) diff --git a/cmd/slnc/cmd/vault_add.go b/cmd/slnc/cmd/vault_add.go index 9fbdde84..60cc9691 100644 --- a/cmd/slnc/cmd/vault_add.go +++ b/cmd/slnc/cmd/vault_add.go @@ -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" ) diff --git a/cmd/slnc/cmd/vault_create.go b/cmd/slnc/cmd/vault_create.go index e190c4ad..80dd5985 100644 --- a/cmd/slnc/cmd/vault_create.go +++ b/cmd/slnc/cmd/vault_create.go @@ -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" ) diff --git a/cmd/slnc/main.go b/cmd/slnc/main.go index 854c8ea1..56ec07ed 100644 --- a/cmd/slnc/main.go +++ b/cmd/slnc/main.go @@ -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" diff --git a/diff/logging.go b/diff/logging.go index b7e44262..b737ec05 100644 --- a/diff/logging.go +++ b/diff/logging.go @@ -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 { diff --git a/go.mod b/go.mod index acba0316..15ea1eb2 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/gagliardetto/solana-go +module github.com/olegfomenko/solana-go go 1.16 diff --git a/logging.go b/logging.go index f87a5cd7..a94f5743 100644 --- a/logging.go +++ b/logging.go @@ -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) } diff --git a/message.go b/message.go index 638b6f5b..dd138497 100644 --- a/message.go +++ b/message.go @@ -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 { diff --git a/programs/associated-token-account/Create.go b/programs/associated-token-account/Create.go index 3752423a..8e234490 100644 --- a/programs/associated-token-account/Create.go +++ b/programs/associated-token-account/Create.go @@ -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 { diff --git a/programs/associated-token-account/instructions.go b/programs/associated-token-account/instructions.go index b0ac3140..eda2cdcd 100644 --- a/programs/associated-token-account/instructions.go +++ b/programs/associated-token-account/instructions.go @@ -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 diff --git a/programs/bpf-loader/loader.go b/programs/bpf-loader/loader.go index 1c2c0936..c3e1d0a7 100644 --- a/programs/bpf-loader/loader.go +++ b/programs/bpf-loader/loader.go @@ -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 ( diff --git a/programs/serum/instruction.go b/programs/serum/instruction.go index 51f9cf7a..67fa40c7 100644 --- a/programs/serum/instruction.go +++ b/programs/serum/instruction.go @@ -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() { diff --git a/programs/serum/logging.go b/programs/serum/logging.go index 947ed3d5..413b9f5a 100644 --- a/programs/serum/logging.go +++ b/programs/serum/logging.go @@ -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) } diff --git a/programs/serum/market.go b/programs/serum/market.go index e19ec31a..4974aedd 100644 --- a/programs/serum/market.go +++ b/programs/serum/market.go @@ -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 { diff --git a/programs/serum/program.go b/programs/serum/program.go index a79784df..4d795e6d 100644 --- a/programs/serum/program.go +++ b/programs/serum/program.go @@ -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") diff --git a/programs/serum/queue.go b/programs/serum/queue.go index 4a24d2c1..d2cddd9f 100644 --- a/programs/serum/queue.go +++ b/programs/serum/queue.go @@ -21,7 +21,7 @@ import ( "strings" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type RequestQueue struct { diff --git a/programs/serum/queue_test.go b/programs/serum/queue_test.go index 92eec175..fd17eccf 100644 --- a/programs/serum/queue_test.go +++ b/programs/serum/queue_test.go @@ -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" ) diff --git a/programs/serum/rpc.go b/programs/serum/rpc.go index dbb6d8f1..da066375 100644 --- a/programs/serum/rpc.go +++ b/programs/serum/rpc.go @@ -24,9 +24,9 @@ import ( rice "github.com/GeertJohan/go.rice" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" "go.uber.org/zap" ) diff --git a/programs/serum/rpc_test.go b/programs/serum/rpc_test.go index bea8434a..aa1362f4 100644 --- a/programs/serum/rpc_test.go +++ b/programs/serum/rpc_test.go @@ -23,13 +23,13 @@ import ( "os" "testing" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc/ws" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" "github.com/stretchr/testify/require" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) func TestFetchMarket(t *testing.T) { diff --git a/programs/serum/types.go b/programs/serum/types.go index bed3956a..ce64570e 100644 --- a/programs/serum/types.go +++ b/programs/serum/types.go @@ -23,7 +23,7 @@ import ( "math/big" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "go.uber.org/zap" ) diff --git a/programs/serum/types_test.go b/programs/serum/types_test.go index 3ab2736b..52b80f15 100644 --- a/programs/serum/types_test.go +++ b/programs/serum/types_test.go @@ -26,7 +26,7 @@ import ( "testing" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/programs/system/AdvanceNonceAccount.go b/programs/system/AdvanceNonceAccount.go index 8a14c79e..81e73503 100644 --- a/programs/system/AdvanceNonceAccount.go +++ b/programs/system/AdvanceNonceAccount.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Consumes a stored nonce, replacing it with a successor diff --git a/programs/system/Allocate.go b/programs/system/Allocate.go index 639fb786..bdd83934 100644 --- a/programs/system/Allocate.go +++ b/programs/system/Allocate.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Allocate space in a (possibly new) account without funding diff --git a/programs/system/AllocateWithSeed.go b/programs/system/AllocateWithSeed.go index ade535b2..87b9e35a 100644 --- a/programs/system/AllocateWithSeed.go +++ b/programs/system/AllocateWithSeed.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Allocate space for and assign an account at an address derived from a base public key and a seed diff --git a/programs/system/Assign.go b/programs/system/Assign.go index 36e8ac6e..138f0813 100644 --- a/programs/system/Assign.go +++ b/programs/system/Assign.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Assign account to a program diff --git a/programs/system/AssignWithSeed.go b/programs/system/AssignWithSeed.go index 226b6a60..46276960 100644 --- a/programs/system/AssignWithSeed.go +++ b/programs/system/AssignWithSeed.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Assign account to a program based on a seed diff --git a/programs/system/AuthorizeNonceAccount.go b/programs/system/AuthorizeNonceAccount.go index cd4b4336..bdaaac6b 100644 --- a/programs/system/AuthorizeNonceAccount.go +++ b/programs/system/AuthorizeNonceAccount.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Change the entity authorized to execute nonce instructions on the account diff --git a/programs/system/CreateAccount.go b/programs/system/CreateAccount.go index 859c0e3e..63ec7490 100644 --- a/programs/system/CreateAccount.go +++ b/programs/system/CreateAccount.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Create a new account diff --git a/programs/system/CreateAccountWithSeed.go b/programs/system/CreateAccountWithSeed.go index bf565746..289a9656 100644 --- a/programs/system/CreateAccountWithSeed.go +++ b/programs/system/CreateAccountWithSeed.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Create a new account at an address derived from a base pubkey and a seed diff --git a/programs/system/CreateAccountWithSeed_test.go b/programs/system/CreateAccountWithSeed_test.go index b501dfb2..bcf117b0 100644 --- a/programs/system/CreateAccountWithSeed_test.go +++ b/programs/system/CreateAccountWithSeed_test.go @@ -21,7 +21,7 @@ import ( bin "github.com/gagliardetto/binary" ag_gofuzz "github.com/gagliardetto/gofuzz" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ag_require "github.com/stretchr/testify/require" ) diff --git a/programs/system/InitializeNonceAccount.go b/programs/system/InitializeNonceAccount.go index 802a66ab..bb4297d1 100644 --- a/programs/system/InitializeNonceAccount.go +++ b/programs/system/InitializeNonceAccount.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Drive state of Uninitalized nonce account to Initialized, setting the nonce value diff --git a/programs/system/Transfer.go b/programs/system/Transfer.go index 5ed3cd92..99b12638 100644 --- a/programs/system/Transfer.go +++ b/programs/system/Transfer.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Transfer lamports diff --git a/programs/system/TransferWithSeed.go b/programs/system/TransferWithSeed.go index dc6cf6fc..664a538d 100644 --- a/programs/system/TransferWithSeed.go +++ b/programs/system/TransferWithSeed.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Transfer lamports from a derived address diff --git a/programs/system/WithdrawNonceAccount.go b/programs/system/WithdrawNonceAccount.go index c9aefc8c..2be9c9e0 100644 --- a/programs/system/WithdrawNonceAccount.go +++ b/programs/system/WithdrawNonceAccount.go @@ -20,9 +20,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Withdraw funds from a nonce account diff --git a/programs/system/accounts.go b/programs/system/accounts.go index 863fe36a..ab9e0ddb 100644 --- a/programs/system/accounts.go +++ b/programs/system/accounts.go @@ -18,7 +18,7 @@ import ( "encoding/binary" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type NonceAccount struct { diff --git a/programs/system/accounts_test.go b/programs/system/accounts_test.go index 062f7577..a562aea2 100644 --- a/programs/system/accounts_test.go +++ b/programs/system/accounts_test.go @@ -19,7 +19,7 @@ import ( "testing" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/stretchr/testify/assert" ) diff --git a/programs/system/instructions.go b/programs/system/instructions.go index c6469257..80e6447b 100644 --- a/programs/system/instructions.go +++ b/programs/system/instructions.go @@ -24,9 +24,9 @@ import ( ag_spew "github.com/davecgh/go-spew/spew" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_text "github.com/olegfomenko/solana-go/text" ) var ProgramID ag_solanago.PublicKey = ag_solanago.SystemProgramID diff --git a/programs/system/logging.go b/programs/system/logging.go index 1c3e3987..784f808e 100644 --- a/programs/system/logging.go +++ b/programs/system/logging.go @@ -22,9 +22,9 @@ import ( "go.uber.org/zap" ) -var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go/system") +var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go/system") var zlog = zap.NewNop() func init() { - logging.Register("github.com/gagliardetto/solana-go/system", &zlog) + logging.Register("github.com/olegfomenko/solana-go/system", &zlog) } diff --git a/programs/token/Approve.go b/programs/token/Approve.go index e7fb6680..a4c53036 100644 --- a/programs/token/Approve.go +++ b/programs/token/Approve.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Approves a delegate. A delegate is given the authority over tokens on diff --git a/programs/token/ApproveChecked.go b/programs/token/ApproveChecked.go index fcfb9f50..9f782921 100644 --- a/programs/token/ApproveChecked.go +++ b/programs/token/ApproveChecked.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Approves a delegate. A delegate is given the authority over tokens on diff --git a/programs/token/Burn.go b/programs/token/Burn.go index ec745ac1..3c63cb09 100644 --- a/programs/token/Burn.go +++ b/programs/token/Burn.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Burns tokens by removing them from an account. `Burn` does not support diff --git a/programs/token/BurnChecked.go b/programs/token/BurnChecked.go index c434e6db..8326a9ef 100644 --- a/programs/token/BurnChecked.go +++ b/programs/token/BurnChecked.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Burns tokens by removing them from an account. `BurnChecked` does not diff --git a/programs/token/CloseAccount.go b/programs/token/CloseAccount.go index 3d4101da..9f421545 100644 --- a/programs/token/CloseAccount.go +++ b/programs/token/CloseAccount.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Close an account by transferring all its SOL to the destination account. diff --git a/programs/token/FreezeAccount.go b/programs/token/FreezeAccount.go index 303cdc31..c7b618b7 100644 --- a/programs/token/FreezeAccount.go +++ b/programs/token/FreezeAccount.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Freeze an Initialized account using the Mint's freeze_authority (if set). diff --git a/programs/token/InitializeAccount.go b/programs/token/InitializeAccount.go index eb87cc2b..52d66e78 100644 --- a/programs/token/InitializeAccount.go +++ b/programs/token/InitializeAccount.go @@ -18,9 +18,9 @@ import ( "errors" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Initializes a new account to hold tokens. If this account is associated diff --git a/programs/token/InitializeAccount2.go b/programs/token/InitializeAccount2.go index a010027d..03edc8a3 100644 --- a/programs/token/InitializeAccount2.go +++ b/programs/token/InitializeAccount2.go @@ -18,9 +18,9 @@ import ( "errors" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Like InitializeAccount, but the owner pubkey is passed via instruction data diff --git a/programs/token/InitializeAccount3.go b/programs/token/InitializeAccount3.go index 4b68e4fb..e2900e8f 100644 --- a/programs/token/InitializeAccount3.go +++ b/programs/token/InitializeAccount3.go @@ -18,9 +18,9 @@ import ( "errors" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Like InitializeAccount2, but does not require the Rent sysvar to be provided. diff --git a/programs/token/InitializeMint.go b/programs/token/InitializeMint.go index a3e0dba1..6cb195f8 100644 --- a/programs/token/InitializeMint.go +++ b/programs/token/InitializeMint.go @@ -18,9 +18,9 @@ import ( "errors" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Initializes a new mint and optionally deposits all the newly minted diff --git a/programs/token/InitializeMint2.go b/programs/token/InitializeMint2.go index 238e606f..f115f925 100644 --- a/programs/token/InitializeMint2.go +++ b/programs/token/InitializeMint2.go @@ -18,9 +18,9 @@ import ( "errors" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Like InitializeMint, but does not require the Rent sysvar to be provided. diff --git a/programs/token/InitializeMultisig.go b/programs/token/InitializeMultisig.go index d4042cb6..9c776850 100644 --- a/programs/token/InitializeMultisig.go +++ b/programs/token/InitializeMultisig.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Initializes a multisignature account with N provided signers. diff --git a/programs/token/InitializeMultisig2.go b/programs/token/InitializeMultisig2.go index 6165849c..11e407b7 100644 --- a/programs/token/InitializeMultisig2.go +++ b/programs/token/InitializeMultisig2.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Like InitializeMultisig, but does not require the Rent sysvar to be provided. diff --git a/programs/token/MintTo.go b/programs/token/MintTo.go index d008bc15..9a8e2c40 100644 --- a/programs/token/MintTo.go +++ b/programs/token/MintTo.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Mints new tokens to an account. The native mint does not support diff --git a/programs/token/MintToChecked.go b/programs/token/MintToChecked.go index 6edafa4d..bc21966f 100644 --- a/programs/token/MintToChecked.go +++ b/programs/token/MintToChecked.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Mints new tokens to an account. The native mint does not support minting. diff --git a/programs/token/Revoke.go b/programs/token/Revoke.go index 6c17c87a..3902fefb 100644 --- a/programs/token/Revoke.go +++ b/programs/token/Revoke.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Revokes the delegate's authority. diff --git a/programs/token/SetAuthority.go b/programs/token/SetAuthority.go index bfb4c8b5..24cd0591 100644 --- a/programs/token/SetAuthority.go +++ b/programs/token/SetAuthority.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Sets a new authority of a mint or account. diff --git a/programs/token/SyncNative.go b/programs/token/SyncNative.go index 41605eb2..67cdf1d9 100644 --- a/programs/token/SyncNative.go +++ b/programs/token/SyncNative.go @@ -18,9 +18,9 @@ import ( "errors" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Given a wrapped / native token account (a token account containing SOL) diff --git a/programs/token/ThawAccount.go b/programs/token/ThawAccount.go index ffe09c08..4f8f440d 100644 --- a/programs/token/ThawAccount.go +++ b/programs/token/ThawAccount.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Thaw a Frozen account using the Mint's freeze_authority (if set). diff --git a/programs/token/Transfer.go b/programs/token/Transfer.go index e68d3fe8..8e4e0707 100644 --- a/programs/token/Transfer.go +++ b/programs/token/Transfer.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Transfers tokens from one account to another either directly or via a diff --git a/programs/token/TransferChecked.go b/programs/token/TransferChecked.go index 3f30aba3..238a0719 100644 --- a/programs/token/TransferChecked.go +++ b/programs/token/TransferChecked.go @@ -19,9 +19,9 @@ import ( "fmt" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_format "github.com/olegfomenko/solana-go/text/format" ) // Transfers tokens from one account to another either directly or via a diff --git a/programs/token/accounts.go b/programs/token/accounts.go index a6e692b0..84e82d8d 100644 --- a/programs/token/accounts.go +++ b/programs/token/accounts.go @@ -18,7 +18,7 @@ import ( "encoding/binary" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type Mint struct { diff --git a/programs/token/accounts_test.go b/programs/token/accounts_test.go index 0305a9de..3ed1bcb3 100644 --- a/programs/token/accounts_test.go +++ b/programs/token/accounts_test.go @@ -6,7 +6,7 @@ import ( "github.com/davecgh/go-spew/spew" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/stretchr/testify/require" ) diff --git a/programs/token/instructions.go b/programs/token/instructions.go index cda804b1..eba229e7 100644 --- a/programs/token/instructions.go +++ b/programs/token/instructions.go @@ -23,9 +23,9 @@ import ( ag_spew "github.com/davecgh/go-spew/spew" 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" + ag_solanago "github.com/olegfomenko/solana-go" + ag_text "github.com/olegfomenko/solana-go/text" ) // Maximum number of multisignature signers (max N) diff --git a/programs/token/rpc.go b/programs/token/rpc.go index 078b4e9a..bf20fbb1 100644 --- a/programs/token/rpc.go +++ b/programs/token/rpc.go @@ -22,7 +22,7 @@ import ( "fmt" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) const MINT_SIZE = 82 diff --git a/programs/tokenregistry/instruction.go b/programs/tokenregistry/instruction.go index ca3135c6..c46eca83 100644 --- a/programs/tokenregistry/instruction.go +++ b/programs/tokenregistry/instruction.go @@ -22,10 +22,10 @@ import ( "encoding/binary" "fmt" - "github.com/gagliardetto/solana-go/text" + "github.com/olegfomenko/solana-go/text" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) func init() { diff --git a/programs/tokenregistry/logging.go b/programs/tokenregistry/logging.go index 99ffe328..568c91d9 100644 --- a/programs/tokenregistry/logging.go +++ b/programs/tokenregistry/logging.go @@ -23,8 +23,8 @@ import ( ) var zlog = zap.NewNop() -var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go/program/tokenregistry") +var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go/program/tokenregistry") func init() { - logging.Register("github.com/gagliardetto/solana-go/program/tokenregistry", &zlog) + logging.Register("github.com/olegfomenko/solana-go/program/tokenregistry", &zlog) } diff --git a/programs/tokenregistry/program.go b/programs/tokenregistry/program.go index 106fe15d..ad45095e 100644 --- a/programs/tokenregistry/program.go +++ b/programs/tokenregistry/program.go @@ -20,7 +20,7 @@ package tokenregistry import ( "os" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) var mainnetProgramID = solana.MustPublicKeyFromBase58("CmPVzy88JSB4S223yCvFmBxTLobLya27KgEDeNPnqEub") diff --git a/programs/tokenregistry/rpc.go b/programs/tokenregistry/rpc.go index 7d96c6fd..444ee163 100644 --- a/programs/tokenregistry/rpc.go +++ b/programs/tokenregistry/rpc.go @@ -21,8 +21,8 @@ import ( "context" "fmt" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func GetTokenRegistryEntry(ctx context.Context, rpcCli *rpc.Client, mintAddress solana.PublicKey) (*TokenMeta, error) { diff --git a/programs/tokenregistry/types.go b/programs/tokenregistry/types.go index 3444504b..6dee14a6 100644 --- a/programs/tokenregistry/types.go +++ b/programs/tokenregistry/types.go @@ -21,7 +21,7 @@ import ( bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) const TOKEN_META_SIZE = 229 diff --git a/rpc/client.go b/rpc/client.go index 55f1e0be..2c73a245 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -24,8 +24,8 @@ import ( "net/http" "time" - "github.com/gagliardetto/solana-go/rpc/jsonrpc" "github.com/klauspost/compress/gzhttp" + "github.com/olegfomenko/solana-go/rpc/jsonrpc" "go.uber.org/ratelimit" ) diff --git a/rpc/client_test.go b/rpc/client_test.go index 9b4176e6..adc85ce5 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -27,7 +27,7 @@ import ( "github.com/AlekSi/pointer" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/rpc/deprecated.go b/rpc/deprecated.go index 2ed30e0b..43c10bc9 100644 --- a/rpc/deprecated.go +++ b/rpc/deprecated.go @@ -21,7 +21,7 @@ import ( "context" "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetConfirmedBlock returns identity and transaction information about a confirmed block in the ledger. diff --git a/rpc/examples/getAccountInfo/getAccountInfo.go b/rpc/examples/getAccountInfo/getAccountInfo.go index b189ddbd..52c2ccd1 100644 --- a/rpc/examples/getAccountInfo/getAccountInfo.go +++ b/rpc/examples/getAccountInfo/getAccountInfo.go @@ -19,9 +19,9 @@ import ( "github.com/davecgh/go-spew/spew" bin "github.com/gagliardetto/binary" - solana "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/programs/token" - "github.com/gagliardetto/solana-go/rpc" + solana "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/programs/token" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBalance/getBalance.go b/rpc/examples/getBalance/getBalance.go index 942a6e7e..f79abd93 100644 --- a/rpc/examples/getBalance/getBalance.go +++ b/rpc/examples/getBalance/getBalance.go @@ -20,8 +20,8 @@ import ( "math/big" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlock/getBlock.go b/rpc/examples/getBlock/getBlock.go index f45e925c..c6a8b19a 100644 --- a/rpc/examples/getBlock/getBlock.go +++ b/rpc/examples/getBlock/getBlock.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlockCommitment/getBlockCommitment.go b/rpc/examples/getBlockCommitment/getBlockCommitment.go index 3ad3ee0b..be5266af 100644 --- a/rpc/examples/getBlockCommitment/getBlockCommitment.go +++ b/rpc/examples/getBlockCommitment/getBlockCommitment.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlockHeight/getBlockHeight.go b/rpc/examples/getBlockHeight/getBlockHeight.go index 60223159..b6997e93 100644 --- a/rpc/examples/getBlockHeight/getBlockHeight.go +++ b/rpc/examples/getBlockHeight/getBlockHeight.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlockProduction/getBlockProduction.go b/rpc/examples/getBlockProduction/getBlockProduction.go index e4398b1a..d9e8d87e 100644 --- a/rpc/examples/getBlockProduction/getBlockProduction.go +++ b/rpc/examples/getBlockProduction/getBlockProduction.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlockTime/getBlockTime.go b/rpc/examples/getBlockTime/getBlockTime.go index 457b23b5..b434f053 100644 --- a/rpc/examples/getBlockTime/getBlockTime.go +++ b/rpc/examples/getBlockTime/getBlockTime.go @@ -19,7 +19,7 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlocks/getBlocks.go b/rpc/examples/getBlocks/getBlocks.go index bf97ac73..d59c4ace 100644 --- a/rpc/examples/getBlocks/getBlocks.go +++ b/rpc/examples/getBlocks/getBlocks.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getBlocksWithLimit/getBlocksWithLimit.go b/rpc/examples/getBlocksWithLimit/getBlocksWithLimit.go index c0128dd1..02c37632 100644 --- a/rpc/examples/getBlocksWithLimit/getBlocksWithLimit.go +++ b/rpc/examples/getBlocksWithLimit/getBlocksWithLimit.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getClusterNodes/getClusterNodes.go b/rpc/examples/getClusterNodes/getClusterNodes.go index fb868767..a3261ed2 100644 --- a/rpc/examples/getClusterNodes/getClusterNodes.go +++ b/rpc/examples/getClusterNodes/getClusterNodes.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getConfirmedBlock/getConfirmedBlock.go b/rpc/examples/getConfirmedBlock/getConfirmedBlock.go index 45cb0da0..101f18ee 100644 --- a/rpc/examples/getConfirmedBlock/getConfirmedBlock.go +++ b/rpc/examples/getConfirmedBlock/getConfirmedBlock.go @@ -19,8 +19,8 @@ import ( "github.com/AlekSi/pointer" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getConfirmedBlocks/getConfirmedBlocks.go b/rpc/examples/getConfirmedBlocks/getConfirmedBlocks.go index d46832b6..91fc92a4 100644 --- a/rpc/examples/getConfirmedBlocks/getConfirmedBlocks.go +++ b/rpc/examples/getConfirmedBlocks/getConfirmedBlocks.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getConfirmedBlocksWithLimit/getConfirmedBlocksWithLimit.go b/rpc/examples/getConfirmedBlocksWithLimit/getConfirmedBlocksWithLimit.go index 0a633aad..e2826f30 100644 --- a/rpc/examples/getConfirmedBlocksWithLimit/getConfirmedBlocksWithLimit.go +++ b/rpc/examples/getConfirmedBlocksWithLimit/getConfirmedBlocksWithLimit.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getConfirmedSignaturesForAddress2/getConfirmedSignaturesForAddress2.go b/rpc/examples/getConfirmedSignaturesForAddress2/getConfirmedSignaturesForAddress2.go index 8a00bd01..e856406d 100644 --- a/rpc/examples/getConfirmedSignaturesForAddress2/getConfirmedSignaturesForAddress2.go +++ b/rpc/examples/getConfirmedSignaturesForAddress2/getConfirmedSignaturesForAddress2.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getConfirmedTransaction/getConfirmedTransaction.go b/rpc/examples/getConfirmedTransaction/getConfirmedTransaction.go index 6a46e4b8..5a61bb7c 100644 --- a/rpc/examples/getConfirmedTransaction/getConfirmedTransaction.go +++ b/rpc/examples/getConfirmedTransaction/getConfirmedTransaction.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getEpochInfo/getEpochInfo.go b/rpc/examples/getEpochInfo/getEpochInfo.go index 420c6823..9be240e3 100644 --- a/rpc/examples/getEpochInfo/getEpochInfo.go +++ b/rpc/examples/getEpochInfo/getEpochInfo.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getEpochSchedule/getEpochSchedule.go b/rpc/examples/getEpochSchedule/getEpochSchedule.go index b5023cb3..433add9d 100644 --- a/rpc/examples/getEpochSchedule/getEpochSchedule.go +++ b/rpc/examples/getEpochSchedule/getEpochSchedule.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getFeeCalculatorForBlockhash/getFeeCalculatorForBlockhash.go b/rpc/examples/getFeeCalculatorForBlockhash/getFeeCalculatorForBlockhash.go index bb58a00d..2cca6c40 100644 --- a/rpc/examples/getFeeCalculatorForBlockhash/getFeeCalculatorForBlockhash.go +++ b/rpc/examples/getFeeCalculatorForBlockhash/getFeeCalculatorForBlockhash.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getFeeForMessage/getFeeForMessage.go b/rpc/examples/getFeeForMessage/getFeeForMessage.go index 0a260546..a192c72d 100644 --- a/rpc/examples/getFeeForMessage/getFeeForMessage.go +++ b/rpc/examples/getFeeForMessage/getFeeForMessage.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getFeeRateGovernor/getFeeRateGovernor.go b/rpc/examples/getFeeRateGovernor/getFeeRateGovernor.go index fd79b808..c1518243 100644 --- a/rpc/examples/getFeeRateGovernor/getFeeRateGovernor.go +++ b/rpc/examples/getFeeRateGovernor/getFeeRateGovernor.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getFees/getFees.go b/rpc/examples/getFees/getFees.go index f29f2ced..e33b6470 100644 --- a/rpc/examples/getFees/getFees.go +++ b/rpc/examples/getFees/getFees.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getFirstAvailableBlock/getFirstAvailableBlock.go b/rpc/examples/getFirstAvailableBlock/getFirstAvailableBlock.go index c4ba5101..948d0425 100644 --- a/rpc/examples/getFirstAvailableBlock/getFirstAvailableBlock.go +++ b/rpc/examples/getFirstAvailableBlock/getFirstAvailableBlock.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getGenesisHash/getGenesisHash.go b/rpc/examples/getGenesisHash/getGenesisHash.go index 3498fc95..78069d1b 100644 --- a/rpc/examples/getGenesisHash/getGenesisHash.go +++ b/rpc/examples/getGenesisHash/getGenesisHash.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getHealth/getHealth.go b/rpc/examples/getHealth/getHealth.go index 5d38b2aa..fee1de66 100644 --- a/rpc/examples/getHealth/getHealth.go +++ b/rpc/examples/getHealth/getHealth.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getHighestSnapshotSlot/getHighestSnapshotSlot.go b/rpc/examples/getHighestSnapshotSlot/getHighestSnapshotSlot.go index 73a875f0..f7ed92a1 100644 --- a/rpc/examples/getHighestSnapshotSlot/getHighestSnapshotSlot.go +++ b/rpc/examples/getHighestSnapshotSlot/getHighestSnapshotSlot.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getIdentity/getIdentity.go b/rpc/examples/getIdentity/getIdentity.go index d737d38f..a624799e 100644 --- a/rpc/examples/getIdentity/getIdentity.go +++ b/rpc/examples/getIdentity/getIdentity.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getInflationGovernor/getInflationGovernor.go b/rpc/examples/getInflationGovernor/getInflationGovernor.go index e7ff2885..dd3bc604 100644 --- a/rpc/examples/getInflationGovernor/getInflationGovernor.go +++ b/rpc/examples/getInflationGovernor/getInflationGovernor.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getInflationRate/getInflationRate.go b/rpc/examples/getInflationRate/getInflationRate.go index f6c64488..40ae3fde 100644 --- a/rpc/examples/getInflationRate/getInflationRate.go +++ b/rpc/examples/getInflationRate/getInflationRate.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getInflationReward/getInflationReward.go b/rpc/examples/getInflationReward/getInflationReward.go index 45acee48..73eb6070 100644 --- a/rpc/examples/getInflationReward/getInflationReward.go +++ b/rpc/examples/getInflationReward/getInflationReward.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getLargestAccounts/getLargestAccounts.go b/rpc/examples/getLargestAccounts/getLargestAccounts.go index 88aefa17..58720353 100644 --- a/rpc/examples/getLargestAccounts/getLargestAccounts.go +++ b/rpc/examples/getLargestAccounts/getLargestAccounts.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getLatestBlockhash/getLatestBlockhash.go b/rpc/examples/getLatestBlockhash/getLatestBlockhash.go index 6d1296aa..05b058d8 100644 --- a/rpc/examples/getLatestBlockhash/getLatestBlockhash.go +++ b/rpc/examples/getLatestBlockhash/getLatestBlockhash.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getLeaderSchedule/getLeaderSchedule.go b/rpc/examples/getLeaderSchedule/getLeaderSchedule.go index b785058d..aa53c44b 100644 --- a/rpc/examples/getLeaderSchedule/getLeaderSchedule.go +++ b/rpc/examples/getLeaderSchedule/getLeaderSchedule.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getMaxRetransmitSlot/getMaxRetransmitSlot.go b/rpc/examples/getMaxRetransmitSlot/getMaxRetransmitSlot.go index 2e11de87..ea9eab1b 100644 --- a/rpc/examples/getMaxRetransmitSlot/getMaxRetransmitSlot.go +++ b/rpc/examples/getMaxRetransmitSlot/getMaxRetransmitSlot.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getMaxShredInsertSlot/getMaxShredInsertSlot.go b/rpc/examples/getMaxShredInsertSlot/getMaxShredInsertSlot.go index deedf5b2..fe239cb4 100644 --- a/rpc/examples/getMaxShredInsertSlot/getMaxShredInsertSlot.go +++ b/rpc/examples/getMaxShredInsertSlot/getMaxShredInsertSlot.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getMinimumBalanceForRentExemption/getMinimumBalanceForRentExemption.go b/rpc/examples/getMinimumBalanceForRentExemption/getMinimumBalanceForRentExemption.go index 0902ba8a..5a328c22 100644 --- a/rpc/examples/getMinimumBalanceForRentExemption/getMinimumBalanceForRentExemption.go +++ b/rpc/examples/getMinimumBalanceForRentExemption/getMinimumBalanceForRentExemption.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getMultipleAccounts/getMultipleAccounts.go b/rpc/examples/getMultipleAccounts/getMultipleAccounts.go index 6b06670f..b43587ad 100644 --- a/rpc/examples/getMultipleAccounts/getMultipleAccounts.go +++ b/rpc/examples/getMultipleAccounts/getMultipleAccounts.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getProgramAccounts/getProgramAccounts.go b/rpc/examples/getProgramAccounts/getProgramAccounts.go index 654a8b13..e1d05b13 100644 --- a/rpc/examples/getProgramAccounts/getProgramAccounts.go +++ b/rpc/examples/getProgramAccounts/getProgramAccounts.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getRecentBlockhash/getRecentBlockhash.go b/rpc/examples/getRecentBlockhash/getRecentBlockhash.go index 27ebc0bb..c844b4e4 100644 --- a/rpc/examples/getRecentBlockhash/getRecentBlockhash.go +++ b/rpc/examples/getRecentBlockhash/getRecentBlockhash.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getRecentPerformanceSamples/getRecentPerformanceSamples.go b/rpc/examples/getRecentPerformanceSamples/getRecentPerformanceSamples.go index c2a5602f..89d9aaae 100644 --- a/rpc/examples/getRecentPerformanceSamples/getRecentPerformanceSamples.go +++ b/rpc/examples/getRecentPerformanceSamples/getRecentPerformanceSamples.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSignatureStatuses/getSignatureStatuses.go b/rpc/examples/getSignatureStatuses/getSignatureStatuses.go index b246c240..e2a6c765 100644 --- a/rpc/examples/getSignatureStatuses/getSignatureStatuses.go +++ b/rpc/examples/getSignatureStatuses/getSignatureStatuses.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSignaturesForAddress/getSignaturesForAddress.go b/rpc/examples/getSignaturesForAddress/getSignaturesForAddress.go index 1c595ff9..92e131d1 100644 --- a/rpc/examples/getSignaturesForAddress/getSignaturesForAddress.go +++ b/rpc/examples/getSignaturesForAddress/getSignaturesForAddress.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSlot/getSlot.go b/rpc/examples/getSlot/getSlot.go index 19da573a..d10dd1d2 100644 --- a/rpc/examples/getSlot/getSlot.go +++ b/rpc/examples/getSlot/getSlot.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSlotLeader/getSlotLeader.go b/rpc/examples/getSlotLeader/getSlotLeader.go index 0557cc30..27303ede 100644 --- a/rpc/examples/getSlotLeader/getSlotLeader.go +++ b/rpc/examples/getSlotLeader/getSlotLeader.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSlotLeaders/getSlotLeaders.go b/rpc/examples/getSlotLeaders/getSlotLeaders.go index 5fda7679..226599b7 100644 --- a/rpc/examples/getSlotLeaders/getSlotLeaders.go +++ b/rpc/examples/getSlotLeaders/getSlotLeaders.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSnapshotSlot/getSnapshotSlot.go b/rpc/examples/getSnapshotSlot/getSnapshotSlot.go index a555665f..9feaf25f 100644 --- a/rpc/examples/getSnapshotSlot/getSnapshotSlot.go +++ b/rpc/examples/getSnapshotSlot/getSnapshotSlot.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getStakeActivation/getStakeActivation.go b/rpc/examples/getStakeActivation/getStakeActivation.go index 28a41ad1..dbaeee8d 100644 --- a/rpc/examples/getStakeActivation/getStakeActivation.go +++ b/rpc/examples/getStakeActivation/getStakeActivation.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getSupply/getSupply.go b/rpc/examples/getSupply/getSupply.go index ad41f93b..93b4320f 100644 --- a/rpc/examples/getSupply/getSupply.go +++ b/rpc/examples/getSupply/getSupply.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTokenAccountBalance/getTokenAccountBalance.go b/rpc/examples/getTokenAccountBalance/getTokenAccountBalance.go index c621d73d..5c37c017 100644 --- a/rpc/examples/getTokenAccountBalance/getTokenAccountBalance.go +++ b/rpc/examples/getTokenAccountBalance/getTokenAccountBalance.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTokenAccountsByDelegate/getTokenAccountsByDelegate.go b/rpc/examples/getTokenAccountsByDelegate/getTokenAccountsByDelegate.go index 7eabe5a6..f03418a3 100644 --- a/rpc/examples/getTokenAccountsByDelegate/getTokenAccountsByDelegate.go +++ b/rpc/examples/getTokenAccountsByDelegate/getTokenAccountsByDelegate.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTokenAccountsByOwner/getTokenAccountsByOwner.go b/rpc/examples/getTokenAccountsByOwner/getTokenAccountsByOwner.go index b9a27c95..2d85d89a 100644 --- a/rpc/examples/getTokenAccountsByOwner/getTokenAccountsByOwner.go +++ b/rpc/examples/getTokenAccountsByOwner/getTokenAccountsByOwner.go @@ -19,9 +19,9 @@ import ( "github.com/davecgh/go-spew/spew" 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/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/programs/token" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTokenLargestAccounts/getTokenLargestAccounts.go b/rpc/examples/getTokenLargestAccounts/getTokenLargestAccounts.go index a9033886..789385f5 100644 --- a/rpc/examples/getTokenLargestAccounts/getTokenLargestAccounts.go +++ b/rpc/examples/getTokenLargestAccounts/getTokenLargestAccounts.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTokenSupply/getTokenSupply.go b/rpc/examples/getTokenSupply/getTokenSupply.go index 8e9831f2..44f94ddd 100644 --- a/rpc/examples/getTokenSupply/getTokenSupply.go +++ b/rpc/examples/getTokenSupply/getTokenSupply.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTransaction/getTransaction.go b/rpc/examples/getTransaction/getTransaction.go index 64ce7555..f52394af 100644 --- a/rpc/examples/getTransaction/getTransaction.go +++ b/rpc/examples/getTransaction/getTransaction.go @@ -19,8 +19,8 @@ import ( "github.com/davecgh/go-spew/spew" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getTransactionCount/getTransactionCount.go b/rpc/examples/getTransactionCount/getTransactionCount.go index 43d5b0e8..2e4bf3ef 100644 --- a/rpc/examples/getTransactionCount/getTransactionCount.go +++ b/rpc/examples/getTransactionCount/getTransactionCount.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getVersion/getVersion.go b/rpc/examples/getVersion/getVersion.go index 668f43d2..d188101a 100644 --- a/rpc/examples/getVersion/getVersion.go +++ b/rpc/examples/getVersion/getVersion.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/getVoteAccounts/getVoteAccounts.go b/rpc/examples/getVoteAccounts/getVoteAccounts.go index 42d5b08e..58fc2168 100644 --- a/rpc/examples/getVoteAccounts/getVoteAccounts.go +++ b/rpc/examples/getVoteAccounts/getVoteAccounts.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/isBlockhashValid/isValidBlockhash.go b/rpc/examples/isBlockhashValid/isValidBlockhash.go index 0cbba74c..94b8f1a8 100644 --- a/rpc/examples/isBlockhashValid/isValidBlockhash.go +++ b/rpc/examples/isBlockhashValid/isValidBlockhash.go @@ -19,8 +19,8 @@ import ( "fmt" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/minimumLedgerSlot/minimumLedgerSlot.go b/rpc/examples/minimumLedgerSlot/minimumLedgerSlot.go index f9e24d3f..22ec40da 100644 --- a/rpc/examples/minimumLedgerSlot/minimumLedgerSlot.go +++ b/rpc/examples/minimumLedgerSlot/minimumLedgerSlot.go @@ -18,7 +18,7 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/requestAirdrop/requestAirdrop.go b/rpc/examples/requestAirdrop/requestAirdrop.go index c9e923f9..9f33b435 100644 --- a/rpc/examples/requestAirdrop/requestAirdrop.go +++ b/rpc/examples/requestAirdrop/requestAirdrop.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/sendEncodedTransaction/sendEncodedTransaction.go b/rpc/examples/sendEncodedTransaction/sendEncodedTransaction.go index 1a814091..2ef8143d 100644 --- a/rpc/examples/sendEncodedTransaction/sendEncodedTransaction.go +++ b/rpc/examples/sendEncodedTransaction/sendEncodedTransaction.go @@ -18,7 +18,7 @@ import ( "context" "fmt" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/sendRawTransaction/sendRawTransaction.go b/rpc/examples/sendRawTransaction/sendRawTransaction.go index f7a18f0a..23680690 100644 --- a/rpc/examples/sendRawTransaction/sendRawTransaction.go +++ b/rpc/examples/sendRawTransaction/sendRawTransaction.go @@ -19,7 +19,7 @@ import ( "encoding/base64" "fmt" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/examples/sendTransaction/sendTransaction.go b/rpc/examples/sendTransaction/sendTransaction.go index f53d6a85..0c82fb52 100644 --- a/rpc/examples/sendTransaction/sendTransaction.go +++ b/rpc/examples/sendTransaction/sendTransaction.go @@ -20,8 +20,8 @@ import ( "fmt" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) func main() { diff --git a/rpc/getAccountInfo.go b/rpc/getAccountInfo.go index 7e27bae9..8d2d4850 100644 --- a/rpc/getAccountInfo.go +++ b/rpc/getAccountInfo.go @@ -21,7 +21,7 @@ import ( "errors" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetAccountInfo returns all information associated with the account of provided publicKey. diff --git a/rpc/getBalance.go b/rpc/getBalance.go index 676d67bf..deecd1e9 100644 --- a/rpc/getBalance.go +++ b/rpc/getBalance.go @@ -19,7 +19,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetBalance returns the balance of the account of provided publicKey. diff --git a/rpc/getBlock.go b/rpc/getBlock.go index 62e729ab..7fd89cb3 100644 --- a/rpc/getBlock.go +++ b/rpc/getBlock.go @@ -18,7 +18,7 @@ import ( "context" "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type TransactionDetailsType string diff --git a/rpc/getBlockProduction.go b/rpc/getBlockProduction.go index 32e1e10e..290babb0 100644 --- a/rpc/getBlockProduction.go +++ b/rpc/getBlockProduction.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetBlockProductionResult struct { diff --git a/rpc/getBlockTime.go b/rpc/getBlockTime.go index 9076e155..f1e5973a 100644 --- a/rpc/getBlockTime.go +++ b/rpc/getBlockTime.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetBlockTime returns the estimated production time of a block. diff --git a/rpc/getClusterNodes.go b/rpc/getClusterNodes.go index 559c6831..06314350 100644 --- a/rpc/getClusterNodes.go +++ b/rpc/getClusterNodes.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetClusterNodes returns information about all the nodes participating in the cluster. diff --git a/rpc/getFeeCalculatorForBlockhash.go b/rpc/getFeeCalculatorForBlockhash.go index 53e0adb4..910fc1b3 100644 --- a/rpc/getFeeCalculatorForBlockhash.go +++ b/rpc/getFeeCalculatorForBlockhash.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetFeeCalculatorForBlockhash returns the fee calculator diff --git a/rpc/getFees.go b/rpc/getFees.go index 779af8b9..e2e5a7ec 100644 --- a/rpc/getFees.go +++ b/rpc/getFees.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetFees returns a recent block hash from the ledger, diff --git a/rpc/getGenesisHash.go b/rpc/getGenesisHash.go index 4ca42cc3..fec642fb 100644 --- a/rpc/getGenesisHash.go +++ b/rpc/getGenesisHash.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetGenesisHash returns the genesis hash. diff --git a/rpc/getIdentity.go b/rpc/getIdentity.go index 00bd7006..019a13d2 100644 --- a/rpc/getIdentity.go +++ b/rpc/getIdentity.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetIdentity returns the identity pubkey for the current node. diff --git a/rpc/getInflationReward.go b/rpc/getInflationReward.go index c73aecbd..88d5c4ed 100644 --- a/rpc/getInflationReward.go +++ b/rpc/getInflationReward.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetInflationRewardOpts struct { diff --git a/rpc/getLargestAccounts.go b/rpc/getLargestAccounts.go index 544e5295..e10b8e5e 100644 --- a/rpc/getLargestAccounts.go +++ b/rpc/getLargestAccounts.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type LargestAccountsFilterType string diff --git a/rpc/getLatestBlockhash.go b/rpc/getLatestBlockhash.go index 1eb024f2..cab3b658 100644 --- a/rpc/getLatestBlockhash.go +++ b/rpc/getLatestBlockhash.go @@ -19,7 +19,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // Returns the latest blockhash. diff --git a/rpc/getLeaderSchedule.go b/rpc/getLeaderSchedule.go index f933cb42..fb845ebf 100644 --- a/rpc/getLeaderSchedule.go +++ b/rpc/getLeaderSchedule.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetLeaderSchedule returns the leader schedule for current epoch. diff --git a/rpc/getMultipleAccounts.go b/rpc/getMultipleAccounts.go index af316cf9..6eaa58df 100644 --- a/rpc/getMultipleAccounts.go +++ b/rpc/getMultipleAccounts.go @@ -18,7 +18,7 @@ import ( "context" "errors" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetMultipleAccountsResult struct { diff --git a/rpc/getProgramAccounts.go b/rpc/getProgramAccounts.go index b22117f9..8931c177 100644 --- a/rpc/getProgramAccounts.go +++ b/rpc/getProgramAccounts.go @@ -19,7 +19,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetProgramAccounts returns all accounts owned by the provided program publicKey. diff --git a/rpc/getSignatureStatuses.go b/rpc/getSignatureStatuses.go index 48cc8c18..6a0c796e 100644 --- a/rpc/getSignatureStatuses.go +++ b/rpc/getSignatureStatuses.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetSignatureStatuses Returns the statuses of a list of signatures. diff --git a/rpc/getSignaturesForAddress.go b/rpc/getSignaturesForAddress.go index 2b55d007..591fa9c4 100644 --- a/rpc/getSignaturesForAddress.go +++ b/rpc/getSignaturesForAddress.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetSignaturesForAddressOpts struct { diff --git a/rpc/getSlotLeader.go b/rpc/getSlotLeader.go index 859a153f..b04d0420 100644 --- a/rpc/getSlotLeader.go +++ b/rpc/getSlotLeader.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetSlotLeader returns the current slot leader. diff --git a/rpc/getSlotLeaders.go b/rpc/getSlotLeaders.go index 3b52fbad..732c854c 100644 --- a/rpc/getSlotLeaders.go +++ b/rpc/getSlotLeaders.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetSlotLeaders returns the slot leaders for a given slot range. diff --git a/rpc/getStakeActivation.go b/rpc/getStakeActivation.go index 52cb5969..ca63afec 100644 --- a/rpc/getStakeActivation.go +++ b/rpc/getStakeActivation.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetStakeActivation returns epoch activation information for a stake account. diff --git a/rpc/getSupply.go b/rpc/getSupply.go index f31cfc24..abdbe589 100644 --- a/rpc/getSupply.go +++ b/rpc/getSupply.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetSupply returns information about the current supply. diff --git a/rpc/getTokenAccountBalance.go b/rpc/getTokenAccountBalance.go index 6e573384..815ac174 100644 --- a/rpc/getTokenAccountBalance.go +++ b/rpc/getTokenAccountBalance.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetTokenAccountBalance returns the token balance of an SPL Token account. diff --git a/rpc/getTokenAccountsByDelegate.go b/rpc/getTokenAccountsByDelegate.go index 6951db70..deb15900 100644 --- a/rpc/getTokenAccountsByDelegate.go +++ b/rpc/getTokenAccountsByDelegate.go @@ -18,7 +18,7 @@ import ( "context" "errors" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetTokenAccountsConfig struct { diff --git a/rpc/getTokenAccountsByOwner.go b/rpc/getTokenAccountsByOwner.go index 76daf48c..2fd4523f 100644 --- a/rpc/getTokenAccountsByOwner.go +++ b/rpc/getTokenAccountsByOwner.go @@ -18,7 +18,7 @@ import ( "context" "errors" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetTokenAccountsByOwner returns all SPL Token accounts by token owner. diff --git a/rpc/getTokenLargestAccounts.go b/rpc/getTokenLargestAccounts.go index aeddfe14..f3939d56 100644 --- a/rpc/getTokenLargestAccounts.go +++ b/rpc/getTokenLargestAccounts.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetTokenLargestAccounts returns the 20 largest accounts of a particular SPL Token type. diff --git a/rpc/getTokenSupply.go b/rpc/getTokenSupply.go index e3e5794e..61adedef 100644 --- a/rpc/getTokenSupply.go +++ b/rpc/getTokenSupply.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // GetTokenSupply returns the total supply of an SPL Token type. diff --git a/rpc/getTransaction.go b/rpc/getTransaction.go index 89f406f7..c2a347b7 100644 --- a/rpc/getTransaction.go +++ b/rpc/getTransaction.go @@ -19,7 +19,7 @@ import ( "fmt" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetTransactionOpts struct { diff --git a/rpc/getVoteAccounts.go b/rpc/getVoteAccounts.go index b049d984..e26079ec 100644 --- a/rpc/getVoteAccounts.go +++ b/rpc/getVoteAccounts.go @@ -17,7 +17,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type GetVoteAccountsOpts struct { diff --git a/rpc/isBlockhashValid.go b/rpc/isBlockhashValid.go index fccc03ae..4e64cc5d 100644 --- a/rpc/isBlockhashValid.go +++ b/rpc/isBlockhashValid.go @@ -3,7 +3,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // Returns whether a blockhash is still valid or not diff --git a/rpc/logging.go b/rpc/logging.go index fb688977..cf860c34 100644 --- a/rpc/logging.go +++ b/rpc/logging.go @@ -22,9 +22,9 @@ import ( "go.uber.org/zap" ) -var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go/rpc") +var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go/rpc") var zlog *zap.Logger func init() { - logging.Register("github.com/gagliardetto/solana-go/rpc", &zlog) + logging.Register("github.com/olegfomenko/solana-go/rpc", &zlog) } diff --git a/rpc/requestAirdrop.go b/rpc/requestAirdrop.go index 5f076013..b15970d4 100644 --- a/rpc/requestAirdrop.go +++ b/rpc/requestAirdrop.go @@ -19,7 +19,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // RequestAirdrop requests an airdrop of lamports to a publicKey. diff --git a/rpc/sendAndConfirmTransaction/sendAndConfirmTransaction.go b/rpc/sendAndConfirmTransaction/sendAndConfirmTransaction.go index c7c6cfd4..f3e8921c 100644 --- a/rpc/sendAndConfirmTransaction/sendAndConfirmTransaction.go +++ b/rpc/sendAndConfirmTransaction/sendAndConfirmTransaction.go @@ -18,9 +18,9 @@ import ( "context" "fmt" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) // Send and wait for confirmation of a transaction. @@ -31,7 +31,7 @@ func SendAndConfirmTransaction( transaction *solana.Transaction, ) (signature solana.Signature, err error) { opts := rpc.TransactionOpts{ - SkipPreflight: false, + SkipPreflight: false, PreflightCommitment: rpc.CommitmentFinalized, } diff --git a/rpc/sendEncodedTransaction.go b/rpc/sendEncodedTransaction.go index 486ac471..898db712 100644 --- a/rpc/sendEncodedTransaction.go +++ b/rpc/sendEncodedTransaction.go @@ -19,7 +19,7 @@ package rpc import ( "context" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // SendEncodedTransaction submits a signed base64 encoded transaction to the cluster for processing. diff --git a/rpc/sendRawTransaction.go b/rpc/sendRawTransaction.go index ebdf81ab..e3e8a1b8 100644 --- a/rpc/sendRawTransaction.go +++ b/rpc/sendRawTransaction.go @@ -20,7 +20,7 @@ import ( "context" "encoding/base64" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // SendRawTransaction submits a signed transaction to the cluster for processing. diff --git a/rpc/sendTransaction.go b/rpc/sendTransaction.go index 8d15de5e..1b011579 100644 --- a/rpc/sendTransaction.go +++ b/rpc/sendTransaction.go @@ -21,7 +21,7 @@ import ( "encoding/base64" "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // SendTransaction submits a signed transaction to the cluster for processing. diff --git a/rpc/simulateTransaction.go b/rpc/simulateTransaction.go index d720ee99..53de8886 100644 --- a/rpc/simulateTransaction.go +++ b/rpc/simulateTransaction.go @@ -21,7 +21,7 @@ import ( "encoding/base64" "fmt" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type SimulateTransactionResponse struct { diff --git a/rpc/types.go b/rpc/types.go index 55ec0cb1..2c58e92e 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -23,7 +23,7 @@ import ( "fmt" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type Context struct { diff --git a/rpc/types_test.go b/rpc/types_test.go index 383ac4f5..a9b98c61 100644 --- a/rpc/types_test.go +++ b/rpc/types_test.go @@ -18,7 +18,7 @@ import ( stdjson "encoding/json" "testing" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" "github.com/stretchr/testify/assert" ) diff --git a/rpc/ws/accountSubscribe.go b/rpc/ws/accountSubscribe.go index 807efa1c..4ef6c530 100644 --- a/rpc/ws/accountSubscribe.go +++ b/rpc/ws/accountSubscribe.go @@ -15,8 +15,8 @@ package ws import ( - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) type AccountResult struct { diff --git a/rpc/ws/blockSubscribe.go b/rpc/ws/blockSubscribe.go index 559a269c..8af4d2b2 100644 --- a/rpc/ws/blockSubscribe.go +++ b/rpc/ws/blockSubscribe.go @@ -17,8 +17,8 @@ package ws import ( "fmt" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) type BlockResult struct { diff --git a/rpc/ws/client_test.go b/rpc/ws/client_test.go index 2030a514..e22541c4 100644 --- a/rpc/ws/client_test.go +++ b/rpc/ws/client_test.go @@ -23,8 +23,8 @@ import ( "os" "testing" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/text" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/text" "github.com/stretchr/testify/require" "go.uber.org/zap" ) diff --git a/rpc/ws/examples/accountSubscribe/accountSubscribe.go b/rpc/ws/examples/accountSubscribe/accountSubscribe.go index 61193df3..d7dcb384 100644 --- a/rpc/ws/examples/accountSubscribe/accountSubscribe.go +++ b/rpc/ws/examples/accountSubscribe/accountSubscribe.go @@ -18,9 +18,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/examples/logsSubscribe/logsSubscribe.go b/rpc/ws/examples/logsSubscribe/logsSubscribe.go index 3a32e3d8..6005c4ad 100644 --- a/rpc/ws/examples/logsSubscribe/logsSubscribe.go +++ b/rpc/ws/examples/logsSubscribe/logsSubscribe.go @@ -18,9 +18,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/examples/programSubscribe/programSubscribe.go b/rpc/ws/examples/programSubscribe/programSubscribe.go index 2a54e77f..2eb2472f 100644 --- a/rpc/ws/examples/programSubscribe/programSubscribe.go +++ b/rpc/ws/examples/programSubscribe/programSubscribe.go @@ -18,9 +18,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/examples/rootSubscribe/rootSubscribe.go b/rpc/ws/examples/rootSubscribe/rootSubscribe.go index 87ccd962..3181a12c 100644 --- a/rpc/ws/examples/rootSubscribe/rootSubscribe.go +++ b/rpc/ws/examples/rootSubscribe/rootSubscribe.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/examples/signatureSubscribe/signatureSubscribe.go b/rpc/ws/examples/signatureSubscribe/signatureSubscribe.go index 6a2f40b2..4aa9036a 100644 --- a/rpc/ws/examples/signatureSubscribe/signatureSubscribe.go +++ b/rpc/ws/examples/signatureSubscribe/signatureSubscribe.go @@ -18,9 +18,9 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/examples/slotSubscribe/slotSubscribe.go b/rpc/ws/examples/slotSubscribe/slotSubscribe.go index 1da17f87..68440d02 100644 --- a/rpc/ws/examples/slotSubscribe/slotSubscribe.go +++ b/rpc/ws/examples/slotSubscribe/slotSubscribe.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/examples/voteSubscribe/voteSubscribe.go b/rpc/ws/examples/voteSubscribe/voteSubscribe.go index e5f8d7cf..8ecdc639 100644 --- a/rpc/ws/examples/voteSubscribe/voteSubscribe.go +++ b/rpc/ws/examples/voteSubscribe/voteSubscribe.go @@ -18,8 +18,8 @@ import ( "context" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go/rpc" - "github.com/gagliardetto/solana-go/rpc/ws" + "github.com/olegfomenko/solana-go/rpc" + "github.com/olegfomenko/solana-go/rpc/ws" ) func main() { diff --git a/rpc/ws/logging.go b/rpc/ws/logging.go index ac168143..1683ec02 100644 --- a/rpc/ws/logging.go +++ b/rpc/ws/logging.go @@ -23,8 +23,8 @@ import ( ) var zlog *zap.Logger -var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/gagliardetto/solana-go/rpc/ws") +var traceEnabled = logging.IsTraceEnabled("solana-go", "github.com/olegfomenko/solana-go/rpc/ws") func init() { - logging.Register("github.com/gagliardetto/solana-go/rpc/ws", &zlog) + logging.Register("github.com/olegfomenko/solana-go/rpc/ws", &zlog) } diff --git a/rpc/ws/logsSubscribe.go b/rpc/ws/logsSubscribe.go index 548a3ef2..d56903d3 100644 --- a/rpc/ws/logsSubscribe.go +++ b/rpc/ws/logsSubscribe.go @@ -15,8 +15,8 @@ package ws import ( - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) type LogResult struct { diff --git a/rpc/ws/programSubscribe.go b/rpc/ws/programSubscribe.go index 8639395f..a40a22b4 100644 --- a/rpc/ws/programSubscribe.go +++ b/rpc/ws/programSubscribe.go @@ -15,8 +15,8 @@ package ws import ( - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) type ProgramResult struct { diff --git a/rpc/ws/signatureSubscribe.go b/rpc/ws/signatureSubscribe.go index 6962c4c3..b3b2520b 100644 --- a/rpc/ws/signatureSubscribe.go +++ b/rpc/ws/signatureSubscribe.go @@ -15,8 +15,8 @@ package ws import ( - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/rpc" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/rpc" ) type SignatureResult struct { diff --git a/rpc/ws/slotsUpdatesSubscribe.go b/rpc/ws/slotsUpdatesSubscribe.go index 11931b4f..3bc99396 100644 --- a/rpc/ws/slotsUpdatesSubscribe.go +++ b/rpc/ws/slotsUpdatesSubscribe.go @@ -14,7 +14,7 @@ package ws -import "github.com/gagliardetto/solana-go" +import "github.com/olegfomenko/solana-go" type SlotsUpdatesResult struct { // The parent slot. diff --git a/rpc/ws/voteSubscribe.go b/rpc/ws/voteSubscribe.go index 9fc526bc..7e247f26 100644 --- a/rpc/ws/voteSubscribe.go +++ b/rpc/ws/voteSubscribe.go @@ -15,7 +15,7 @@ package ws import ( - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) type VoteResult struct { diff --git a/text/format/format.go b/text/format/format.go index 5cca05dd..29b37fd8 100644 --- a/text/format/format.go +++ b/text/format/format.go @@ -18,9 +18,9 @@ import ( "strings" "github.com/davecgh/go-spew/spew" - "github.com/gagliardetto/solana-go" - "github.com/gagliardetto/solana-go/text" - . "github.com/gagliardetto/solana-go/text" + "github.com/olegfomenko/solana-go" + "github.com/olegfomenko/solana-go/text" + . "github.com/olegfomenko/solana-go/text" ) func Program(name string, programID solana.PublicKey) string { diff --git a/transaction.go b/transaction.go index 63e114d3..0c4185ff 100644 --- a/transaction.go +++ b/transaction.go @@ -26,8 +26,8 @@ import ( "github.com/davecgh/go-spew/spew" bin "github.com/gagliardetto/binary" - "github.com/gagliardetto/solana-go/text" "github.com/gagliardetto/treeout" + "github.com/olegfomenko/solana-go/text" "go.uber.org/zap" ) @@ -347,6 +347,32 @@ func (tx *Transaction) MarshalBinary() ([]byte, error) { return output, nil } +type MarshallOpts struct { + RequireAllSignatures bool +} + +func (tx *Transaction) MarshalBinaryWitOpts(opts MarshallOpts) ([]byte, error) { + if opts.RequireAllSignatures && (len(tx.Signatures) == 0 || len(tx.Signatures) != int(tx.Message.Header.NumRequiredSignatures)) { + return nil, errors.New("signature verification failed") + } + + messageContent, err := tx.Message.MarshalBinary() + if err != nil { + return nil, fmt.Errorf("failed to encode tx.Message to binary: %w", err) + } + + var signatureCount []byte + bin.EncodeCompactU16Length(&signatureCount, len(tx.Signatures)) + output := make([]byte, 0, len(signatureCount)+len(signatureCount)*64+len(messageContent)) + output = append(output, signatureCount...) + for _, sig := range tx.Signatures { + output = append(output, sig[:]...) + } + output = append(output, messageContent...) + + return output, nil +} + func (tx Transaction) MarshalWithEncoder(encoder *bin.Encoder) error { out, err := tx.MarshalBinary() if err != nil { @@ -392,7 +418,7 @@ func (tx *Transaction) Sign(getter privateKeyGetter) (out []Signature, err error for _, key := range signerKeys { privateKey := getter(key) if privateKey == nil { - return nil, fmt.Errorf("signer key %q not found. Ensure all the signer keys are in the vault", key.String()) + continue } s, err := privateKey.Sign(messageContent) @@ -411,7 +437,7 @@ func (tx *Transaction) EncodeTree(encoder *text.TreeEncoder) (int, error) { } // String returns a human-readable string representation of the transaction data. -// To disable colors, set "github.com/gagliardetto/solana-go/text".DisableColors = true +// To disable colors, set "github.com/olegfomenko/solana-go/text".DisableColors = true func (tx *Transaction) String() string { buf := new(bytes.Buffer) _, err := tx.EncodeTree(text.NewTreeEncoder(buf, "")) diff --git a/vault/secretboxer.go b/vault/secretboxer.go index 4294e6d0..8b0fc5e5 100644 --- a/vault/secretboxer.go +++ b/vault/secretboxer.go @@ -18,7 +18,7 @@ import ( "fmt" "os" - "github.com/gagliardetto/solana-go/cli" + "github.com/olegfomenko/solana-go/cli" "github.com/pkg/errors" ) diff --git a/vault/vault.go b/vault/vault.go index 89c99356..bb40e5d4 100644 --- a/vault/vault.go +++ b/vault/vault.go @@ -18,7 +18,7 @@ import ( "fmt" "os" - "github.com/gagliardetto/solana-go" + "github.com/olegfomenko/solana-go" ) // Vault represents a `solana-go` wallet. It contains the encrypted