Documentation ¶
Index ¶
- func GetLimit(gasPrice *big.Int, energy uint64) int64
- type TronClient
- func (c *TronClient) Allowance(contractAddress, owner, spender string) (*big.Int, error)
- func (c *TronClient) BlockNumber(_ context.Context) (uint64, error)
- func (c *TronClient) BroadcastTx(tx *api.TransactionExtention) (*api.Return, error)
- func (c *TronClient) EstimateGas(from, to, data []byte) (uint64, error)
- func (c *TronClient) GetBridgeTokenList(contractAddress string) ([]contract.FxBridgeToken, error)
- func (c *TronClient) GetTokenStatus(contractAddress, tokenAddress string) (bool, bool, bool, error)
- func (c *TronClient) LastBatchNonce(contractAddress string, erc20Address string) (uint64, error)
- func (c *TronClient) QueryBlockEvent(contractAddress string, blockNumber uint64) ([]contract.IEvent, error)
- func (c *TronClient) QueryOracleSetUpdatedEvent(contractAddress string, blockNumber uint64) ([]*contract.FxBridgeTronOracleSetUpdatedEvent, error)
- func (c *TronClient) StateFxBridgeId(contractAddress string) (string, error)
- func (c *TronClient) StateLastOracleSetHeight(contractAddress string) (uint64, error)
- func (c *TronClient) StateLastOracleSetNonce(contractAddress string) (uint64, error)
- func (c *TronClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (c *TronClient) TriggerContract(ct *contract.TriggerSmartContract, feeLimit int64) (*api.TransactionExtention, error)
- func (c *TronClient) WithMint(txId []byte, timeOut time.Duration) (info *core.TransactionInfo, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TronClient ¶
type TronClient struct {
*client.GrpcClient
}
func NewTronGrpcClient ¶
func NewTronGrpcClient(grpcUrl string) (*TronClient, error)
func (*TronClient) Allowance ¶
func (c *TronClient) Allowance(contractAddress, owner, spender string) (*big.Int, error)
func (*TronClient) BlockNumber ¶
func (c *TronClient) BlockNumber(_ context.Context) (uint64, error)
func (*TronClient) BroadcastTx ¶
func (c *TronClient) BroadcastTx(tx *api.TransactionExtention) (*api.Return, error)
func (*TronClient) EstimateGas ¶
func (c *TronClient) EstimateGas(from, to, data []byte) (uint64, error)
func (*TronClient) GetBridgeTokenList ¶
func (c *TronClient) GetBridgeTokenList(contractAddress string) ([]contract.FxBridgeToken, error)
func (*TronClient) GetTokenStatus ¶
func (*TronClient) LastBatchNonce ¶
func (c *TronClient) LastBatchNonce(contractAddress string, erc20Address string) (uint64, error)
func (*TronClient) QueryBlockEvent ¶
func (*TronClient) QueryOracleSetUpdatedEvent ¶
func (c *TronClient) QueryOracleSetUpdatedEvent(contractAddress string, blockNumber uint64) ([]*contract.FxBridgeTronOracleSetUpdatedEvent, error)
func (*TronClient) StateFxBridgeId ¶
func (c *TronClient) StateFxBridgeId(contractAddress string) (string, error)
func (*TronClient) StateLastOracleSetHeight ¶
func (c *TronClient) StateLastOracleSetHeight(contractAddress string) (uint64, error)
func (*TronClient) StateLastOracleSetNonce ¶
func (c *TronClient) StateLastOracleSetNonce(contractAddress string) (uint64, error)
func (*TronClient) SuggestGasPrice ¶
func (*TronClient) TriggerContract ¶
func (c *TronClient) TriggerContract(ct *contract.TriggerSmartContract, feeLimit int64) (*api.TransactionExtention, error)
func (*TronClient) WithMint ¶
func (c *TronClient) WithMint(txId []byte, timeOut time.Duration) (info *core.TransactionInfo, err error)
Click to show internal directories.
Click to hide internal directories.