Versions in this module Expand all Collapse all v0 v0.0.1 Jun 20, 2023 Changes in this version + const CommitmentAddedTopic + var IsAlphanumeric = regexp.MustCompile(`^[0-9a-zA-Z]+$`).MatchString + func ConvertBigIntFromString(v0, v1 string) (n0 *big.Int, n1 *big.Int, err error) + func ConvertFloat64ToTokenAmount(amount float64, decimals int) *big.Int + func ConvertHexToDecimalInStringFormat(hexString string) string + func ConvertTokenAmountToFloat64(amt string, tokenDecimal int32) float64 + func CreateTransactionOpts(client *ethclient.Client, key *ecdsa.PrivateKey, chainId uint64, ...) (opts *bind.TransactOpts, err error) + func EncodeAddress(addr common.Address) []byte + func EncodeBigInt(b *big.Int) []byte + func EncodeBytesString(v string) []byte + func EncodePacked(input ...[]byte) []byte + func EncodeUint256(v string) []byte + func EncodeUint256Array(arr []string) []byte + func FindOrderEventTopic(topic string) string + func GenerateIncreaseID() (int64, error) + func GetCommitReceiptTopic() string + func GetCommitmentAdded() string + func GetCrossFromTopic() string + func GetCrossToTopic() string + func GetHTTPClient() *http.Client + func GetPairCreatedTopic() + func HTTPReq(method string, url string, httpClient *http.Client, content []byte, ...) (body []byte, err error) + func InitLog(logPath, logLever string) + func IsAnAddress(address string) bool + func IsValidTxHash(txHash string) bool + func Logger() *zap.Logger + func PadLeft(str, pad string, length int) string + func TxWaitToSync(ctx context.Context, client *ethclient.Client, tx *types.Transaction) (*types.Receipt, bool, error) + type OrderEvent struct + DestAddress common.Address + DestChain uint32 + DestToken common.Address + DestTxHash string + Porters []string + Proof string + SrcAddress common.Address + SrcAmount uint32 + SrcToken common.Address + type PairCreatedEvent struct + Arg3 *big.Int + Pair common.Address