diff --git a/abi/get_methods.go b/abi/get_methods.go index d12ed4b9..f4cda22d 100644 --- a/abi/get_methods.go +++ b/abi/get_methods.go @@ -5,6 +5,7 @@ package abi import ( "context" "fmt" + "github.com/tonkeeper/tongo/boc" "github.com/tonkeeper/tongo/tlb" "github.com/tonkeeper/tongo/ton" diff --git a/abi/jetton_test.go b/abi/jetton_test.go index 6fbd029b..c9a1f832 100644 --- a/abi/jetton_test.go +++ b/abi/jetton_test.go @@ -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) { diff --git a/abi/messages_test.go b/abi/messages_test.go index 70aae7dc..a10b4591 100644 --- a/abi/messages_test.go +++ b/abi/messages_test.go @@ -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) { diff --git a/abi/nfts_test.go b/abi/nfts_test.go index 032c6011..a533dcf3 100644 --- a/abi/nfts_test.go +++ b/abi/nfts_test.go @@ -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) { diff --git a/abi/types.go b/abi/types.go index bda6f213..bc1ea4fd 100644 --- a/abi/types.go +++ b/abi/types.go @@ -5,6 +5,7 @@ package abi import ( "encoding/json" "fmt" + "github.com/tonkeeper/tongo/tlb" ) diff --git a/examples/boc/main.go b/examples/boc/main.go index 49c1a7ba..434028f9 100644 --- a/examples/boc/main.go +++ b/examples/boc/main.go @@ -3,6 +3,7 @@ package main import ( "encoding/hex" "fmt" + "github.com/tonkeeper/tongo/boc" ) diff --git a/examples/liteclient/main.go b/examples/liteclient/main.go index 20c1432d..ead9da8f 100644 --- a/examples/liteclient/main.go +++ b/examples/liteclient/main.go @@ -5,6 +5,7 @@ import ( "encoding/base64" "encoding/hex" "fmt" + "github.com/tonkeeper/tongo/liteclient" ) diff --git a/examples/tl/main.go b/examples/tl/main.go index 7d82ec4a..a193a6f6 100644 --- a/examples/tl/main.go +++ b/examples/tl/main.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/hex" "fmt" + "github.com/tonkeeper/tongo" "github.com/tonkeeper/tongo/tl" "github.com/tonkeeper/tongo/tlb" diff --git a/examples/tlb/main.go b/examples/tlb/main.go index acbae0a7..95eb557f 100644 --- a/examples/tlb/main.go +++ b/examples/tlb/main.go @@ -3,6 +3,7 @@ package main import ( "encoding/hex" "fmt" + "github.com/tonkeeper/tongo" "github.com/tonkeeper/tongo/boc" diff --git a/examples/wallet/simple_send/main.go b/examples/wallet/simple_send/main.go index 9a19a84f..fa7c4513 100644 --- a/examples/wallet/simple_send/main.go +++ b/examples/wallet/simple_send/main.go @@ -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" diff --git a/experiments/fragment/main.go b/experiments/fragment/main.go index f1a1c6d0..ffd3b265 100644 --- a/experiments/fragment/main.go +++ b/experiments/fragment/main.go @@ -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() { diff --git a/experiments/test2/main.go b/experiments/test2/main.go index 98a8a82f..63812996 100644 --- a/experiments/test2/main.go +++ b/experiments/test2/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "github.com/tonkeeper/tongo/tlb/parser" ) diff --git a/liteclient/client_test.go b/liteclient/client_test.go index cdbbf8fc..cf0ce862 100644 --- a/liteclient/client_test.go +++ b/liteclient/client_test.go @@ -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) { diff --git a/liteclient/connection.go b/liteclient/connection.go index 1dbb038d..9090f094 100644 --- a/liteclient/connection.go +++ b/liteclient/connection.go @@ -6,9 +6,10 @@ import ( "crypto/rand" "encoding/binary" "fmt" - "github.com/tonkeeper/tongo/tl" "sync" "time" + + "github.com/tonkeeper/tongo/tl" ) const ( diff --git a/liteclient/decoder.go b/liteclient/decoder.go index 96dbbf92..5bddefb1 100644 --- a/liteclient/decoder.go +++ b/liteclient/decoder.go @@ -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 { diff --git a/liteclient/generated.go b/liteclient/generated.go index 6ade84c0..a0f0065f 100644 --- a/liteclient/generated.go +++ b/liteclient/generated.go @@ -7,8 +7,9 @@ import ( "context" "encoding/binary" "fmt" - "github.com/tonkeeper/tongo/tl" "io" + + "github.com/tonkeeper/tongo/tl" ) type TonNodeBlockIdC struct { diff --git a/liteclient/generator.go b/liteclient/generator.go index 23de6763..2dc99e44 100644 --- a/liteclient/generator.go +++ b/liteclient/generator.go @@ -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() { diff --git a/tep64/metadata.go b/tep64/metadata.go index 6e94e60e..c807d7a3 100644 --- a/tep64/metadata.go +++ b/tep64/metadata.go @@ -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 diff --git a/tl/parser/generator.go b/tl/parser/generator.go index 1fac181b..d68f17fa 100644 --- a/tl/parser/generator.go +++ b/tl/parser/generator.go @@ -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 { diff --git a/tlb/dns.go b/tlb/dns.go index cfc64f33..7a4ed539 100644 --- a/tlb/dns.go +++ b/tlb/dns.go @@ -2,6 +2,7 @@ package tlb import ( "fmt" + "github.com/tonkeeper/tongo/boc" ) diff --git a/tlb/tuples_test.go b/tlb/tuples_test.go index 56b20e1e..d4755031 100644 --- a/tlb/tuples_test.go +++ b/tlb/tuples_test.go @@ -2,8 +2,9 @@ package tlb import ( "fmt" - "github.com/tonkeeper/tongo/boc" "testing" + + "github.com/tonkeeper/tongo/boc" ) func TestTuple(t *testing.T) { diff --git a/toncrypto/encyption.go b/toncrypto/encyption.go index 0c33da6f..7f3849a2 100644 --- a/toncrypto/encyption.go +++ b/toncrypto/encyption.go @@ -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" diff --git a/tvm/precompiled/nft.go b/tvm/precompiled/nft.go index d34a26ee..47cf0080 100644 --- a/tvm/precompiled/nft.go +++ b/tvm/precompiled/nft.go @@ -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) { diff --git a/utils/any_to_cell.go b/utils/any_to_cell.go index 771da51e..08d65b83 100644 --- a/utils/any_to_cell.go +++ b/utils/any_to_cell.go @@ -3,6 +3,7 @@ package utils import ( "encoding/base64" "encoding/hex" + "github.com/tonkeeper/tongo/boc" "github.com/tonkeeper/tongo/tlb" ) diff --git a/wallet/models.go b/wallet/models.go index f08fd9cf..e744ea37 100644 --- a/wallet/models.go +++ b/wallet/models.go @@ -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