Merge pull request 'Fixed tron driver settings' (#613) from tron-612 into main
All checks were successful
ci/woodpecker/push/gateway_tron Pipeline was successful
All checks were successful
ci/woodpecker/push/gateway_tron Pipeline was successful
Reviewed-on: #613
This commit was merged in pull request #613.
This commit is contained in:
@@ -8,7 +8,7 @@ replace github.com/tech/sendico/gateway/common => ../common
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1
|
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1
|
||||||
github.com/ethereum/go-ethereum v1.17.0
|
github.com/ethereum/go-ethereum v1.17.1
|
||||||
github.com/fbsobreira/gotron-sdk v0.24.2
|
github.com/fbsobreira/gotron-sdk v0.24.2
|
||||||
github.com/mitchellh/mapstructure v1.5.0
|
github.com/mitchellh/mapstructure v1.5.0
|
||||||
github.com/prometheus/client_golang v1.23.2
|
github.com/prometheus/client_golang v1.23.2
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab h1:rvv6MJ
|
|||||||
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1:IuLm4IsPipXKF7CW5Lzf68PIbZ5yl7FFd74l/E0o9A8=
|
github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1:IuLm4IsPipXKF7CW5Lzf68PIbZ5yl7FFd74l/E0o9A8=
|
||||||
github.com/ethereum/go-ethereum v1.17.0 h1:2D+1Fe23CwZ5tQoAS5DfwKFNI1HGcTwi65/kRlAVxes=
|
github.com/ethereum/go-ethereum v1.17.0 h1:2D+1Fe23CwZ5tQoAS5DfwKFNI1HGcTwi65/kRlAVxes=
|
||||||
github.com/ethereum/go-ethereum v1.17.0/go.mod h1:2W3msvdosS/MCWytpqTcqgFiRYbTH59FxDJzqah120o=
|
github.com/ethereum/go-ethereum v1.17.0/go.mod h1:2W3msvdosS/MCWytpqTcqgFiRYbTH59FxDJzqah120o=
|
||||||
|
github.com/ethereum/go-ethereum v1.17.1 h1:IjlQDjgxg2uL+GzPRkygGULPMLzcYWncEI7wbaizvho=
|
||||||
|
github.com/ethereum/go-ethereum v1.17.1/go.mod h1:7UWOVHL7K3b8RfVRea022btnzLCaanwHtBuH1jUCH/I=
|
||||||
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
|
||||||
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
|
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
|
||||||
github.com/fbsobreira/go-bip39 v1.2.0 h1:zp3VDGrQeGu8/iPB5wsHVSaOwQhBSLR71CE3nJVz4mY=
|
github.com/fbsobreira/go-bip39 v1.2.0 h1:zp3VDGrQeGu8/iPB5wsHVSaOwQhBSLR71CE3nJVz4mY=
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package tron
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/hex"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -18,8 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
// Default fee limit for TRC20 transfers (100 TRX in SUN)
|
// Default fee limit for TRC20 transfers (100 TRX in SUN)
|
||||||
defaultTRC20FeeLimit = 100_000_000
|
defaultTRC20FeeLimit = 100_000_000
|
||||||
// SUN per TRX
|
|
||||||
sunPerTRX = 1_000_000
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// SubmitTransferNative submits a transfer using native TRON gRPC.
|
// SubmitTransferNative submits a transfer using native TRON gRPC.
|
||||||
@@ -299,11 +296,3 @@ func normalizeTxHash(txHash string) string {
|
|||||||
h = strings.TrimPrefix(h, "0X")
|
h = strings.TrimPrefix(h, "0X")
|
||||||
return strings.ToLower(h)
|
return strings.ToLower(h)
|
||||||
}
|
}
|
||||||
|
|
||||||
// txHashToHex converts a byte slice transaction ID to hex string.
|
|
||||||
func txHashToHex(txID []byte) string {
|
|
||||||
if len(txID) == 0 {
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
return hex.EncodeToString(txID)
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user