Skip to content
Open
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/aptos-labs/aptos-go-sdk.svg)](https://pkg.go.dev/github.com/aptos-labs/aptos-go-sdk)
[![Go Report Card](https://goreportcard.com/badge/github.com/aptos-labs/aptos-go-sdk)](https://goreportcard.com/report/github.com/aptos-labs/aptos-go-sdk)
[![Go Reference](https://pkg.go.dev/badge/github.com/qimeila/aptos-go-sdk.svg)](https://pkg.go.dev/github.com/qimeila/aptos-go-sdk)
[![Go Report Card](https://goreportcard.com/badge/github.com/qimeila/aptos-go-sdk)](https://goreportcard.com/report/github.com/qimeila/aptos-go-sdk)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/aptos-labs/aptos-go-sdk)
[![GitHub Tag](https://img.shields.io/github/v/tag/aptos-labs/aptos-go-sdk?label=Latest%20Version)](https://pkg.go.dev/github.com/aptos-labs/aptos-go-sdk)
[![GitHub Tag](https://img.shields.io/github/v/tag/aptos-labs/aptos-go-sdk?label=Latest%20Version)](https://pkg.go.dev/github.com/qimeila/aptos-go-sdk)

# aptos-go-sdk

Expand All @@ -12,7 +12,7 @@ An SDK for the Aptos blockchain in Go.
Add go to your `go.mod` file

```bash
go get -u github.com/aptos-labs/aptos-go-sdk
go get -u github.com/qimeila/aptos-go-sdk
```

## Where can I see examples?
Expand Down
4 changes: 2 additions & 2 deletions account.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package aptos

import (
"github.com/aptos-labs/aptos-go-sdk/crypto"
"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/crypto"
"github.com/qimeila/aptos-go-sdk/internal/types"
)

// Re-export types so that way the user experience doesn't change
Expand Down
2 changes: 1 addition & 1 deletion accountResourceRecord.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package aptos

import (
"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/bcs"
)

// AccountResourceRecord DeserializeSequence[AccountResourceRecord](bcs) approximates the Rust side BTreeMap<StructTag,Vec<u8>>
Expand Down
2 changes: 1 addition & 1 deletion api/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion api/module.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package api

import (
"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
)

// MoveBytecode describes a module, or script, and it's associated ABI as a [MoveModule]
Expand Down
2 changes: 1 addition & 1 deletion api/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion api/payloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"encoding/json"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
)

// TransactionPayloadVariant is the type of payload represented in JSON
Expand Down
2 changes: 1 addition & 1 deletion api/payloads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions api/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package api
import (
"encoding/json"

"github.com/aptos-labs/aptos-go-sdk/crypto"
"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/crypto"
"github.com/qimeila/aptos-go-sdk/internal/types"
)

// SignatureVariant is the JSON representation of the signature types
Expand Down
2 changes: 1 addition & 1 deletion api/signature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/aptos-labs/aptos-go-sdk/crypto"
"github.com/qimeila/aptos-go-sdk/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions api/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// TransactionVariant is the type of transaction, all transactions submitted by this SDK are [TransactionVariantUser]
Expand Down
2 changes: 1 addition & 1 deletion api/transactions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions api/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package api
import (
"encoding/json"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// GUID describes a GUID associated with things like V1 events
Expand Down
2 changes: 1 addition & 1 deletion api/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion api/writeSet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"encoding/json"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
)

// WriteSetVariant is the type of [WriteSet]
Expand Down
2 changes: 1 addition & 1 deletion api/writeSet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion bcs/serializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"math/big"
"slices"

"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// Serializer is a holding type to serialize a set of items into one shared buffer
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/http"
"time"

"github.com/aptos-labs/aptos-go-sdk/api"
"github.com/qimeila/aptos-go-sdk/api"
"github.com/hasura/go-graphql-client"
)

Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/aptos-labs/aptos-go-sdk/api"
"github.com/aptos-labs/aptos-go-sdk/internal/types"
"github.com/qimeila/aptos-go-sdk/api"
"github.com/qimeila/aptos-go-sdk/internal/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion code.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package aptos

import (
"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/bcs"
)

// PublishPackagePayloadFromJsonFile publishes code created with the Aptos CLI to publish with it.
Expand Down
2 changes: 1 addition & 1 deletion coinPayloads.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package aptos

import "github.com/aptos-labs/aptos-go-sdk/bcs"
import "github.com/qimeila/aptos-go-sdk/bcs"

// CoinTransferPayload builds an EntryFunction payload for transferring coins
//
Expand Down
2 changes: 1 addition & 1 deletion commonPayloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package aptos
import (
"errors"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/bcs"
)

/**
Expand Down
2 changes: 1 addition & 1 deletion compatibility/typescript.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package compatibility

import "github.com/aptos-labs/aptos-go-sdk/bcs"
import "github.com/qimeila/aptos-go-sdk/bcs"

// TypeScriptCompatible means the type is able to marshal and unmarshal in BCS to a specific type in TypeScript
type TypeScriptCompatible interface {
Expand Down
4 changes: 2 additions & 2 deletions crypto/authenticationKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// region AuthenticationKey
Expand Down
2 changes: 1 addition & 1 deletion crypto/authenticationKey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package crypto
import (
"testing"

"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
7 changes: 5 additions & 2 deletions crypto/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"fmt"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// AccountAuthenticatorImpl an implementation of an authenticator to provide generic verification across multiple types.
Expand Down Expand Up @@ -109,6 +109,9 @@ func (ea *AccountAuthenticator) UnmarshalBCS(des *bcs.Deserializer) {
ea.Auth = &SingleKeyAuthenticator{}
case AccountAuthenticatorMultiKey:
ea.Auth = &MultiKeyAuthenticator{}
case AccountAuthenticatorNone:
ea.Auth = &NoAuthenticator{}
return
default:
des.SetError(fmt.Errorf("unknown AccountAuthenticator kind: %d", kindNum))
return
Expand Down
4 changes: 2 additions & 2 deletions crypto/authenticator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/ed25519"
"testing"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion crypto/crypto.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package crypto

import "github.com/aptos-labs/aptos-go-sdk/bcs"
import "github.com/qimeila/aptos-go-sdk/bcs"

// Signer a generic interface for any kind of signing
type Signer interface {
Expand Down
2 changes: 1 addition & 1 deletion crypto/cryptoMaterial_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package crypto
import (
"testing"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions crypto/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"io"
"log"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/hdevalence/ed25519consensus"
)

Expand Down
4 changes: 2 additions & 2 deletions crypto/ed25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/ed25519"
"testing"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions crypto/multiEd25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/ed25519"
"fmt"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// region MultiEd25519PublicKey
Expand Down
2 changes: 1 addition & 1 deletion crypto/multiEd25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package crypto
import (
"testing"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions crypto/multiKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"sort"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// region MultiKey
Expand Down
2 changes: 1 addition & 1 deletion crypto/multiKey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/hex"
"testing"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion crypto/privateKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/internal/util"
)

// PrivateKeyVariant represents the type of private key
Expand Down
4 changes: 2 additions & 2 deletions crypto/secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"log"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
)
Expand Down
4 changes: 2 additions & 2 deletions crypto/secp256k1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package crypto
import (
"testing"

"github.com/aptos-labs/aptos-go-sdk/bcs"
"github.com/aptos-labs/aptos-go-sdk/internal/util"
"github.com/qimeila/aptos-go-sdk/bcs"
"github.com/qimeila/aptos-go-sdk/internal/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion crypto/simulation.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package crypto

import "github.com/aptos-labs/aptos-go-sdk/bcs"
import "github.com/qimeila/aptos-go-sdk/bcs"

// region NoAuthenticator

Expand Down
Loading