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
1 change: 1 addition & 0 deletions abi/get_methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package abi
import (
"context"
"fmt"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"github.com/tonkeeper/tongo/ton"
Expand Down
5 changes: 3 additions & 2 deletions abi/jetton_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package abi
import (
"bytes"
"encoding/json"
"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"math/big"
"reflect"
"testing"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
)

func assert(t *testing.T, err error) {
Expand Down
5 changes: 3 additions & 2 deletions abi/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package abi

import (
"fmt"
"reflect"
"testing"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"github.com/tonkeeper/tongo/ton"
"reflect"
"testing"
)

func TestEncodeAndDecodeInMsgBody(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions abi/nfts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package abi

import (
"encoding/json"
"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"reflect"
"testing"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
)

func TestNftPayloadJSMarshaling(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions abi/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package abi
import (
"encoding/json"
"fmt"

"github.com/tonkeeper/tongo/tlb"
)

Expand Down
1 change: 1 addition & 0 deletions examples/boc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"encoding/hex"
"fmt"

"github.com/tonkeeper/tongo/boc"
)

Expand Down
1 change: 1 addition & 0 deletions examples/liteclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/base64"
"encoding/hex"
"fmt"

"github.com/tonkeeper/tongo/liteclient"
)

Expand Down
1 change: 1 addition & 0 deletions examples/tl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"encoding/hex"
"fmt"

"github.com/tonkeeper/tongo"
"github.com/tonkeeper/tongo/tl"
"github.com/tonkeeper/tongo/tlb"
Expand Down
1 change: 1 addition & 0 deletions examples/tlb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"encoding/hex"
"fmt"

"github.com/tonkeeper/tongo"

"github.com/tonkeeper/tongo/boc"
Expand Down
3 changes: 2 additions & 1 deletion examples/wallet/simple_send/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package main

import (
"context"
"log"

"github.com/tonkeeper/tongo"
"github.com/tonkeeper/tongo/liteapi"
"github.com/tonkeeper/tongo/ton"
"github.com/tonkeeper/tongo/wallet"
"log"
)

const SEED = "best journey rifle scheme bamboo daring finish life have puzzle verb wagon double pencil plate parent canoe soup stable salon drift elephant border hero"
Expand Down
3 changes: 2 additions & 1 deletion experiments/fragment/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/tonkeeper/tongo/connect"
"io"
"net/http"
"net/http/cookiejar"
"regexp"
"strings"

"github.com/tonkeeper/tongo/connect"
)

func main() {
Expand Down
1 change: 1 addition & 0 deletions experiments/test2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"fmt"

"github.com/tonkeeper/tongo/tlb/parser"
)

Expand Down
2 changes: 1 addition & 1 deletion liteclient/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"encoding/base64"
"encoding/hex"
"fmt"
"github.com/tonkeeper/tongo/ton"
"os"
"testing"

"github.com/tonkeeper/tongo/config"
"github.com/tonkeeper/tongo/ton"
)

func createTestLiteServerConnection() (*Connection, error) {
Expand Down
3 changes: 2 additions & 1 deletion liteclient/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"crypto/rand"
"encoding/binary"
"fmt"
"github.com/tonkeeper/tongo/tl"
"sync"
"time"

"github.com/tonkeeper/tongo/tl"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion liteclient/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"encoding/binary"
"errors"
"fmt"
"github.com/tonkeeper/tongo/tl"
"reflect"

"github.com/tonkeeper/tongo/tl"
)

func pointer[T any](t T) *T {
Expand Down
3 changes: 2 additions & 1 deletion liteclient/generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
"context"
"encoding/binary"
"fmt"
"github.com/tonkeeper/tongo/tl"
"io"

"github.com/tonkeeper/tongo/tl"
)

type TonNodeBlockIdC struct {
Expand Down
3 changes: 2 additions & 1 deletion liteclient/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package main

import (
"fmt"
"github.com/tonkeeper/tongo/tl/parser"
"io/ioutil"
"os"

"github.com/tonkeeper/tongo/tl/parser"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tep64/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/tonkeeper/tongo/ton"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"github.com/tonkeeper/tongo/ton"
)

type ContentLayout int
Expand Down
3 changes: 2 additions & 1 deletion tl/parser/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"encoding/binary"
"encoding/hex"
"fmt"
"github.com/tonkeeper/tongo/utils"
"go/format"
"strings"
"text/template"

"github.com/tonkeeper/tongo/utils"
)

type DefaultType struct {
Expand Down
1 change: 1 addition & 0 deletions tlb/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package tlb

import (
"fmt"

"github.com/tonkeeper/tongo/boc"
)

Expand Down
3 changes: 2 additions & 1 deletion tlb/tuples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package tlb

import (
"fmt"
"github.com/tonkeeper/tongo/boc"
"testing"

"github.com/tonkeeper/tongo/boc"
)

func TestTuple(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions toncrypto/encyption.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"crypto/rand"
"crypto/sha512"
"errors"

"github.com/oasisprotocol/curve25519-voi/curve"
ed25519crv "github.com/oasisprotocol/curve25519-voi/primitives/ed25519"
"github.com/oasisprotocol/curve25519-voi/primitives/x25519"
Expand Down
3 changes: 2 additions & 1 deletion tvm/precompiled/nft.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package precompiled

import (
"math/big"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"math/big"
)

func nftV1getNftData(data *boc.Cell, args tlb.VmStack) (tlb.VmStack, error) {
Expand Down
1 change: 1 addition & 0 deletions utils/any_to_cell.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package utils
import (
"encoding/base64"
"encoding/hex"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
)
Expand Down
2 changes: 1 addition & 1 deletion wallet/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package wallet
import (
"context"
"fmt"
"github.com/tonkeeper/tongo/utils"
"math/big"
"time"

"github.com/tonkeeper/tongo/boc"
"github.com/tonkeeper/tongo/tlb"
"github.com/tonkeeper/tongo/ton"
"github.com/tonkeeper/tongo/utils"
)

type Version int
Expand Down