package
0.0.0-20250123023730-015d5dcf2785
Repository: https://github.com/scalarorg/xchains-api.git
Documentation: pkg.go.dev
# Functions
Contains checks if a slice contains a specific element.
DeepCopy performs a deep copy of a struct.
No description provided by the author
IsBase64Encoded checks if the given string is a valid Base64 encoded string.
IsValidBtcAddress checks if the provided address is a valid BTC address We only support Taproot addresses and native SegWit addresses.
No description provided by the author
IsValidBtcAddress checks if the provided address is a valid BTC address.
IsValidSignatureFormat checks if the given string is a valid signature in hex format Note: it does not check the actual content of the signature.
IsValidTxHash checks if the given string is a valid BTC transaction hash Note: it does not check the actual content of the hash.
List of states to be ignored for unbonded(timelock expired) as it means it's already been processed.
List of states to be ignored for unbonding as it means it's already been processed.
No description provided by the author
No description provided by the author
QualifiedStatesToUnbonded returns the qualified exisitng states to transition to "unbonded".
QualifiedStatesToUnbonding returns the qualified exisitng states to transition to "unbonding" The Active state is allowed to directly transition to Unbonding without the need of UnbondingRequested due to bootstrap usecase.
QualifiedStatesToUnbondingRequest returns the qualified exisitng states to transition to "unbonding_request".
QualifiedStatesToWithdrawn returns the qualified exisitng states to transition to "withdrawn".