utils/validator library

Classes

ErrorObject

Functions

isConformingNamespaces(ProposalRequiredNamespaces requiredNamespaces, SessionNamespaces namespaces, String context) ErrorObject?
isSessionCompatible(SessionStruct session, ProposalRequiredNamespaces requiredNamespaces) bool
isValidAccountId(String value) bool
isValidAccounts(List<String> accounts, String context) ErrorObject?
isValidActions(dynamic namespace, String context) ErrorObject?
isValidChainId(String value) bool
isValidChains(String key, List<String> chains, String context) ErrorObject?
isValidController(dynamic input, String method) ErrorObject?
isValidErrorReason(ErrorResponse? input) bool
isValidExtension(dynamic namespace, String method) ErrorObject?
isValidNamespaceAccounts(SessionNamespaces input, String method) ErrorObject?
isValidNamespaceActions(dynamic input, String method) ErrorObject?
isValidNamespaceChains(ProposalRequiredNamespaces namespaces, String method) ErrorObject?
isValidNamespaceMethodsOrEvents(List<String>? input) bool
isValidNamespaces(SessionNamespaces? input, String method) ErrorObject?
isValidNamespacesChainId(SessionNamespaces namespaces, String chainId) bool
isValidNamespacesEvent(SessionNamespaces namespaces, String chainId, String eventName) bool
isValidNamespacesRequest(SessionNamespaces namespaces, String chainId, String method) bool
isValidRelay(RelayerProtocolOptions input) bool
isValidRelays(List<RelayerProtocolOptions>? input, bool optional) bool
isValidRequiredNamespaces(ProposalRequiredNamespaces? input, String method) ErrorObject?
isValidUrl(String value) bool