@hyperlane-xyz/sdk
Version:
The official SDK for the Hyperlane Network
15 lines • 643 B
JavaScript
export function isPredicateCapableAdapter(adapter) {
return ('getPredicateWrapperAddress' in adapter &&
typeof adapter
.getPredicateWrapperAddress === 'function' &&
'supportsAttestation' in adapter &&
typeof adapter
.supportsAttestation === 'function');
}
export function isHypCrossCollateralAdapter(adapter) {
return ('populateTransferRemoteToTx' in adapter &&
typeof adapter.populateTransferRemoteToTx === 'function' &&
'quoteTransferRemoteToGas' in adapter &&
typeof adapter.quoteTransferRemoteToGas === 'function');
}
//# sourceMappingURL=ITokenAdapter.js.map