import { MetaTransactionData , SafeTransactionDataPartial } from '@gnosis.pm/safe-core-sdk-types' ; import { SENTINEL_ADDRESS , ZERO_ADDRESS } from './constants' ; export function sameString ( str1 , str2 ) { return str1 . toLowerCase ( ) === str2 . toLowerCase ( ) ; } function isZeroAddress ( address ) { return address === ZERO_ADDRESS ; } function isSentinelAddress ( address ) { return address === SENTINEL_ADDRESS ; } export function isRestrictedAddress ( address ) { return isZeroAddress ( address ) || isSentinelAddress ( address ) ; } export function isMetaTransactionArray ( safeTransactions ) { return ( safeTransactions as MetaTransactionData [ ] ) ?. length !== undefined ; }