Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

move sdk to another repo #668

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions avail-go/examples/README.md → avail-go/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Avail Go SDK documentation / examples

We are using [avail-go-sdk](https://github.com/availproject/avail-go-sdk) for running the examples

## Running Examples in the Docs Directory

To run the examples provided in the `/examples` directory, follow these steps:
Expand Down
9 changes: 5 additions & 4 deletions avail-go/examples/balance_allow_death/main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"avail-go-sdk/src/sdk/types"
"math"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/sdk/types"

"fmt"
)

Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/balance_transfer_all/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
9 changes: 5 additions & 4 deletions avail-go/examples/balances_keep_alive/main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"avail-go-sdk/src/sdk/types"
"math"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/sdk/types"

"fmt"
)

Expand Down
5 changes: 3 additions & 2 deletions avail-go/examples/connect/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"fmt"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
)

// The following example shows how to connect to a node and display some basic information.
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/da_create_application_key/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/da_data_submit/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/da_data_submit_watch/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/da_set_application_key/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/da_submit_block_length/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/da_submit_data_fee_modifier/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"math/big"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)

Expand Down
5 changes: 3 additions & 2 deletions avail-go/examples/existential/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"fmt"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
)

func main() {
Expand Down
6 changes: 2 additions & 4 deletions avail-go/examples/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module avail-go-sdk-examples
module examples

go 1.21.0

require avail-go-sdk v0.0.0
require github.com/availproject/avail-go-sdk v0.1.1

require (
github.com/ChainSafe/go-schnorrkel v1.0.0 // indirect
Expand Down Expand Up @@ -30,5 +30,3 @@ require (
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

replace avail-go-sdk => ../../avail-go
2 changes: 2 additions & 0 deletions avail-go/examples/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ github.com/ChainSafe/go-schnorrkel v1.0.0 h1:3aDA67lAykLaG1y3AOjs88dMxC88PgUuHRr
github.com/ChainSafe/go-schnorrkel v1.0.0/go.mod h1:dpzHYVxLZcp8pjlV+O+UR8K0Hp/z7vcchBSbMBEhCw4=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 h1:fLjPD/aNc3UIOA6tDi6QXUemppXK3P9BI7mr2hd6gx8=
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg=
github.com/availproject/avail-go-sdk v0.1.1 h1:8mo7H4BYVY4hzafhpXHfUgXTImPXdmQuunZKM3/WgnM=
github.com/availproject/avail-go-sdk v0.1.1/go.mod h1:2LX1D4jRJhLAozmUF8Fzrh8FUA0WhjT1VpUykZsUqDM=
github.com/btcsuite/btcd v0.22.0-beta h1:LTDpDKUM5EeOFBPM8IXpinEcmZ6FWfNZbE3lfrfdnWo=
github.com/btcsuite/btcd/btcec/v2 v2.2.0 h1:fzn1qaOt32TuLjFlkzYSsBC35Q3KUjT1SwPxiMSCF5k=
github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU=
Expand Down
4 changes: 2 additions & 2 deletions avail-go/examples/listenNewBlocks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
)

// The following example shows how to connect to a node and listen for a new blocks
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/properties/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/types"
"fmt"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/types"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/rpc/author_rotate/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/call"
"fmt"
"log"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/call"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/rpc/chain_finalizedHead/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/rpc"
"avail-go-sdk/src/sdk"
"fmt"
"log"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/rpc"
"github.com/availproject/avail-go-sdk/src/sdk"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/rpc/chain_getBlock/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/rpc"
"avail-go-sdk/src/sdk"
"fmt"
"log"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/rpc"
"github.com/availproject/avail-go-sdk/src/sdk"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/rpc/chain_getBlockHash/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/rpc"
"avail-go-sdk/src/sdk"
"fmt"
"log"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/rpc"
"github.com/availproject/avail-go-sdk/src/sdk"
)

func main() {
Expand Down
7 changes: 4 additions & 3 deletions avail-go/examples/rpc/chain_getHeader/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/rpc"
"avail-go-sdk/src/sdk"
"fmt"
"log"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/rpc"
"github.com/availproject/avail-go-sdk/src/sdk"
)

func main() {
Expand Down
11 changes: 6 additions & 5 deletions avail-go/examples/rpc/kate_queryProof/main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/rpc"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/call"
"avail-go-sdk/src/sdk/tx"
"encoding/json"
"fmt"
"log"

"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/rpc"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/call"
"github.com/availproject/avail-go-sdk/src/sdk/tx"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions avail-go/examples/rpc/kate_queryProofData/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"fmt"
"log"

"avail-go-sdk/src/config"
"avail-go-sdk/src/rpc"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/call"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/rpc"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/call"
"github.com/availproject/avail-go-sdk/src/sdk/tx"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions avail-go/examples/rpc/kate_queryRows/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package main
import (
"fmt"

"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/call"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/call"
"github.com/availproject/avail-go-sdk/src/sdk/tx"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/staking_bond/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/staking_bond_extra/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
6 changes: 3 additions & 3 deletions avail-go/examples/staking_chill/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"avail-go-sdk/src/config"
"avail-go-sdk/src/sdk"
"avail-go-sdk/src/sdk/tx"
"github.com/availproject/avail-go-sdk/src/config"
"github.com/availproject/avail-go-sdk/src/sdk"
"github.com/availproject/avail-go-sdk/src/sdk/tx"

"fmt"
)
Expand Down
Loading
Loading