MCPcopy Create free account

hub / github.com/ScopeLift/stealth-address-sdk / functions

Functions202 in github.com/ScopeLift/stealth-address-sdk

↓ 38 callersFunctionmakeSubgraphEntity
(id: string)
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.test.ts:18
↓ 34 callersFunctiongenerateStealthAddress
* @description Generates a stealth address from a given stealth meta-address. * This function is designed to support stealth address usage in accorda
src/utils/crypto/generateStealthAddress.ts:38
↓ 26 callersFunctiongetLatestSubgraphIndexedBlock
({ subgraphUrl }: GetLatestSubgraphIndexedBlockParams)
src/utils/helpers/getLatestSubgraphIndexedBlock.ts:120
↓ 17 callersFunctionannounce
({ walletClient, ERC5564Address, args }: { walletClient: SuperWalletClient; ERC5564Address: Address;
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.test.ts:78
↓ 17 callersFunctionwaitForCondition
( condition: () => boolean, timeoutMs = WAIT_TIMEOUT_MS )
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.test.ts:55
↓ 16 callersFunctionbuildMetadataForETH
({ viewTag, amount }: ETHMetadataParams)
src/utils/helpers/buildMetadata.ts:129
↓ 16 callersFunctionmakeAnnouncement
({ blockNumber, from, isForUser, logIndex, sequence, transactionIndex }: { blockNumber: number;
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.test.ts:33
↓ 15 callersFunctiongetAnnouncementsUsingSubgraph
* Fetches announcement data from a specified subgraph URL. * * Supports filtering results based on a filter string that looks like: * " * blo
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsUsingSubgraph.ts:69
↓ 14 callersFunctionparseMetadata
(metadata: Hex)
src/utils/helpers/buildMetadata.ts:331
↓ 13 callersFunctionsetupTestWallet
()
src/lib/helpers/test/setupTestWallet.ts:16
↓ 12 callersFunctioncreateStealthClient
* Creates a client for use in stealth address operations that align with ERC5564. * * @param {StealthClientInitParams} params - Parameters for initi
src/lib/stealthClient/createStealthClient.ts:27
↓ 12 callersFunctionhandleSchemeId
(schemeId: VALID_SCHEME_ID)
src/utils/crypto/generateStealthAddress.ts:281
↓ 12 callersFunctionhandleViemPublicClient
(clientParams?: ClientParams)
src/lib/stealthClient/createStealthClient.ts:93
↓ 12 callersFunctiontoHex
(fieldName: string, value: string)
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:151
↓ 11 callersFunctionfetchAnnouncementsPage
({ caller, client, cursor, filter, fromBlock, pageSize, snapshotBlock, schemeId, toBlock }:
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:271
↓ 10 callersFunctionbuildMetadataForERC20
({ viewTag, tokenAddress, amount, functionSelector = ERC20_FUNCTION_SELECTORS.TRANSFER }: ERC20Metadat
src/utils/helpers/buildMetadata.ts:175
↓ 10 callersFunctionsetupTestStealthKeys
(schemeId: VALID_SCHEME_ID)
src/lib/helpers/test/setupTestStealthKeys.ts:6
↓ 9 callersFunctiongetNextBlockNumber
(walletClient: SuperWalletClient)
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.test.ts:113
↓ 8 callersFunctionparseStealthMetaAddressURI
* @description Parses a stealth meta-address URI and extracts the address data. * Validates the structure and format of the stealth meta-address. *
src/utils/crypto/generateStealthAddress.ts:107
↓ 8 callersFunctionscanAnnouncementsForUserUsingSubgraphWithPageFetcher
( params: ScanAnnouncementsForUserUsingSubgraphParams, getPage: GetAnnouncementsPageUsingSubgraphFn = getA
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.ts:150
↓ 8 callersFunctionsetupTestEnv
()
src/lib/helpers/test/setupTestEnv.ts:15
↓ 8 callersFunctionsleep
(ms: number)
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.test.ts:40
↓ 7 callersFunctiongetAccount
(walletClient: WalletClient | Client)
src/test/helpers/index.ts:69
↓ 7 callersFunctiongetAnnouncementsPageUsingSubgraph
* Fetches a single deterministic page of announcements from a subgraph. * * The initial page omits `cursor` and `snapshotBlock`. Every subsequent pa
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsPageUsingSubgraph.ts:34
↓ 7 callersFunctiongetRpcUrl
()
src/lib/helpers/test/setupTestEnv.ts:54
↓ 7 callersFunctionloadTestResults
()
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsUsingSubgraph.test.ts:258
↓ 7 callersFunctionrequireField
( entity: SubgraphAnnouncementEntity, field: RequiredSubgraphAnnouncementFields )
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:462
↓ 7 callersFunctionwithRealSubgraphRetry
(fn: () => Promise<T>)
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsUsingSubgraph.test.ts:89
↓ 6 callersFunctionbuildAnnouncementsWhereClause
({ caller, cursor, filter, fromBlock, schemeId, toBlock }: BuildAnnouncementsWhereClauseParams)
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:171
↓ 6 callersFunctioncheckStealthAddress
* @description Checks if a given announcement is intended for the user. * @param {ICheckStealthAddressParams} params Parameters for checking if the a
src/utils/crypto/checkStealthAddress.ts:24
↓ 6 callersFunctioncreatePageFetcher
( pages: Array<{ announcements: AnnouncementLog[]; nextCursor?: string; snapshotBlock: bigint;
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.test.ts:110
↓ 6 callersFunctiongetPublicKey
* @description Retrieves the public key from the given private key. * * @param {object} params - Parameters for retrieving the public key: * - pr
src/utils/crypto/generateStealthAddress.ts:323
↓ 6 callersFunctionhandleError
(msg: string)
examples/sendToAndTransferFromStealthAddress/components/stealth-actions-example.tsx:171
↓ 6 callersFunctionisValidPublicKey
* Validates a hex string as a public key using the noble/secp256k1 library. * @param publicKey The public key to validate. * @returns True if the pu
src/utils/helpers/isValidPublicKey.ts:10
↓ 6 callersFunctionmakeOrderedId
(value: number)
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.test.ts:37
↓ 6 callersFunctionparseKeysFromStealthMetaAddress
* @description Extracts and validates the spending and viewing public keys from a stealth meta-address. * * @param {object} params - Parameters for
src/utils/crypto/generateStealthAddress.ts:206
↓ 5 callersFunctionfetchAnnouncementsBatch
({ caller, client, cursor, filter, fromBlock, pageSize, schemeId, toBlock }: BuildAnnouncement
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:343
↓ 5 callersFunctionformatNonNegativeInteger
( fieldName: string, value: bigint | number | string )
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:80
↓ 5 callersFunctiongenerateKeysFromSignature
* Generates spending and viewing public and private keys from a signature. * @param signature as a hexadecimal string. * @returns The spending and v
src/utils/helpers/generateKeysFromSignature.ts:10
↓ 5 callersFunctiongenerateStealthMetaAddressFromSignature
* Generates a stealth meta-address from a signature by: * 1. Generating the spending and viewing public keys from the signature. * 2. Concatenatin
src/utils/helpers/generateStealthMetaAddressFromSignature.ts:12
↓ 5 callersFunctiongetSuccessfulResults
(testResults: TestResult[])
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsUsingSubgraph.test.ts:362
↓ 5 callersFunctionreportWatchError
({ error, fallbackMessage, onError }: { error: unknown; fallbackMessage: string; onError?: WatchAn
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:22
↓ 4 callersFunctionbuildMetadataForERC721
({ viewTag, tokenAddress, tokenId, functionSelector = ERC721_FUNCTION_SELECTORS.TRANSFER_FROM }: ERC72
src/utils/helpers/buildMetadata.ts:223
↓ 4 callersFunctionbuildMetadataFromComponents
* Low-level function to build metadata from components * Internal use only - use the specific builder functions above
src/utils/helpers/buildMetadata.ts:299
↓ 4 callersFunctioncollectAll
( generator: AsyncGenerator<T, void, unknown> )
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.test.ts:133
↓ 4 callersFunctioncomputeStealthKey
({ ephemeralPublicKey, schemeId, spendingPrivateKey, viewingPrivateKey }: IComputeStealthKeyParams)
src/utils/crypto/computeStealthKey.ts:9
↓ 4 callersFunctioncreateDeferred
()
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.test.ts:43
↓ 4 callersFunctioncreateWatchedAnnouncementsQueue
({ onUnexpectedError }: { onUnexpectedError: (error: unknown) => void | Promise<void>; })
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:67
↓ 4 callersFunctionformatTokenAmount
* Converts a token amount to a 32-byte hex string
src/utils/helpers/buildMetadata.ts:46
↓ 4 callersFunctiongeneratePrivateKey
* @description Generates or validates an ephemeral private key. * * @param {object} params - Parameters for generating or validating the private key
src/utils/crypto/generateStealthAddress.ts:295
↓ 4 callersFunctiongenerateRandomStealthMetaAddress
()
src/utils/helpers/generateRandomStealthMetaAddress.ts:5
↓ 4 callersFunctiongenerateSignatureForRegisterKeysOnBehalf
* Generates a typed signature for registering keys on behalf of a user (account) in the ERC6538 Registry. * * This function creates an EIP-712 compl
src/utils/helpers/generateSignatureForRegisterKeysOnBehalf.ts:42
↓ 4 callersFunctionparseRequiredNumber
(value: string, fieldName: string)
examples/composeAnnouncementHistoryAndWatch/index.tsx:63
↓ 4 callersFunctionprocessWatchedAnnouncementsBatch
({ logs, spendingPublicKey, viewingPrivateKey, publicClient, excludeList, includeList, fromBlock
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:129
↓ 4 callersFunctionsignMessage
()
examples/generateDeterministicStealthMetaAddress/index.tsx:40
↓ 4 callersFunctionvalidateViewTag
* Validates that the view tag is exactly 1 byte (2 hex characters + 0x prefix)
src/utils/helpers/buildMetadata.ts:75
↓ 3 callersFunctionaddPriv
({ a, b }: { a: bigint; b: bigint })
src/utils/crypto/computeStealthKey.ts:41
↓ 3 callersFunctioncompareAnnouncementsByChainRecency
( left: AnnouncementLog, right: AnnouncementLog )
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.ts:38
↓ 3 callersFunctionconvertSubgraphEntityToAnnouncementLog
( entity: SubgraphAnnouncementEntity )
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:549
↓ 3 callersFunctioncreateInboxKey
(config: AppliedConfig)
examples/composeAnnouncementHistoryAndWatch/index.tsx:83
↓ 3 callersFunctionfetchChainId
()
src/lib/helpers/test/setupTestEnv.ts:74
↓ 3 callersFunctionformatPrivKey
(privateKey: bigint)
src/utils/crypto/test/computeStealthKey.test.ts:13
↓ 3 callersFunctiongenerateStealthMetaAddressFromKeys
* Concatenates the spending and viewing public keys to create a stealth meta address. * @param spendingPublicKey * @param viewingPublicKey * @retur
src/utils/helpers/generateStealthMetaAddressFromKeys.ts:10
↓ 3 callersFunctiongetChain
(id: VALID_CHAIN_IDS)
src/lib/helpers/chains.ts:4
↓ 3 callersFunctiongetHashedSharedSecret
* @description Hashes the shared secret based on the scheme. * * @param {object} params - Parameters for hashing the shared secret: * - sharedSec
src/utils/crypto/generateStealthAddress.ts:266
↓ 3 callersFunctiongetValidChainId
(chainId: number)
src/lib/helpers/test/setupTestEnv.ts:43
↓ 3 callersFunctiongetViewTag
* @description Extracts the view tag from the hashed shared secret. * * @param {object} params - Parameters for extracting the view tag: * - hash
src/utils/crypto/generateStealthAddress.ts:344
↓ 3 callersFunctiongetViewTagFromMetadata
* Extracts the view tag from the metadata. * * @param metadata The hexadecimal string from which the view tag is extracted. * @returns The view tag
src/utils/helpers/getViewTagFromMetadata.ts:9
↓ 3 callersFunctionparseOptionalNumber
( value: string, fieldName: string )
examples/scanAnnouncementsForUserUsingSubgraph/index.tsx:28
↓ 3 callersFunctionpublicKeyToAddress
* @description Converts a public key to an Ethereum address. * * @param {object} params - Parameters for converting the public key to an address: *
src/utils/crypto/generateStealthAddress.ts:392
↓ 3 callersFunctionrequestAnnouncements
({ caller, client, cursor, filter, first, fromBlock, snapshotBlock, schemeId, toBlock }: Bui
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:229
↓ 3 callersFunctionsafeConsoleError
(loggedError: Error)
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:32
↓ 3 callersFunctionstartWatchHeartbeat
({ fromBlock, onError, onHeartbeat, pollingInterval, publicClient }: { fromBlock?: WatchAnnounceme
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:205
↓ 3 callersFunctionvalidateContractAddress
* Validates that the contract address is exactly 20 bytes of hex
src/utils/helpers/buildMetadata.ts:97
↓ 3 callersFunctionvalidateFunctionSelector
* Validates that the function selector is exactly 4 bytes (8 hex characters + 0x prefix)
src/utils/helpers/buildMetadata.ts:86
↓ 2 callersFunctionannouncementFiltersRequireTransactionLookup
({ excludeList, includeList }: NormalizedAnnouncementAddressFilters)
src/lib/actions/getAnnouncementsForUser/getAnnouncementsForUser.ts:38
↓ 2 callersFunctionbuildSubgraphUrlCandidatesForNetwork
(network: Network)
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsUsingSubgraph.test.ts:199
↓ 2 callersFunctioncreateRawLog
( transactionHash: `0x${string}` )
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.test.ts:1049
↓ 2 callersFunctiondeployContract
({ abi, bytecode, name }: { abi: typeof ERC5564AnnouncerAbi | typeof ERC6538RegistryAbi; bytecode: `
src/scripts/deployContract.ts:13
↓ 2 callersFunctionfilterAnnouncementsForUserBatch
({ announcements, excludeList, includeList, publicClient, spendingPublicKey, viewingPrivateKey }:
src/lib/actions/getAnnouncementsForUser/getAnnouncementsForUser.ts:45
↓ 2 callersFunctiongetAccount
(chainId: number)
src/lib/helpers/test/setupTestWallet.ts:29
↓ 2 callersFunctiongetChainInfo
()
src/lib/helpers/test/setupTestEnv.ts:68
↓ 2 callersFunctiongetResultWithAnnouncements
( testResults: TestResult[], minimumCount = 1 )
src/lib/actions/getAnnouncementsUsingSubgraph/getAnnouncementsUsingSubgraph.test.ts:336
↓ 2 callersFunctiongetSignature
({ walletClient }: { walletClient: WalletClient; })
src/test/helpers/index.ts:20
↓ 2 callersFunctiongetStealthPublicKey
* @description Calculates the stealth public key; for scheme 1, adds the hashed shared secret point to the spending public key. * * @param {object}
src/utils/crypto/generateStealthAddress.ts:366
↓ 2 callersFunctiongetTransactionFrom
({ publicClient, hash }: { publicClient: AnnouncementTransactionLookupClient; hash: `0x${string}`; })
src/lib/actions/getAnnouncementsForUser/getAnnouncementsForUser.ts:222
↓ 2 callersFunctionhex64
(value: number)
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.test.ts:29
↓ 2 callersFunctionisValidCompressedPublicKey
* @description Validates a compressed public key. * A compressed public key is a 66-character hexadecimal string that starts with '02' or '03'. * Th
src/utils/crypto/generateStealthAddress.ts:189
↓ 2 callersFunctionmergeAnnouncements
( current: PersistedAnnouncement[], incoming: PersistedAnnouncement[] )
examples/composeAnnouncementHistoryAndWatch/index.tsx:140
↓ 2 callersFunctionnormalizeAnnouncementAddressFilters
({ excludeList = [], includeList = [] }: Pick< GetAnnouncementsForUserParams, 'excludeList' | 'include
src/lib/actions/getAnnouncementsForUser/getAnnouncementsForUser.ts:21
↓ 2 callersFunctionnormalizePageSize
(pageSize: number, maxPageSize: number)
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:112
↓ 2 callersFunctionnormalizeWatchError
(error: unknown, fallbackMessage: string)
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:12
↓ 2 callersFunctionprocessAnnouncement
( announcement: AnnouncementLog, { excludeList, includeList, publicClient, spendingPublicK
src/lib/actions/getAnnouncementsForUser/getAnnouncementsForUser.ts:128
↓ 2 callersFunctionrunPollLoop
()
src/lib/actions/watchAnnouncementsForUser/watchAnnouncementsForUser.ts:370
↓ 2 callersFunctionscanAnnouncementsForUserUsingSubgraph
( params: ScanAnnouncementsForUserUsingSubgraphParams )
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.ts:221
↓ 2 callersFunctionsendEth
({ sendingWalletClient, to, value }: { sendingWalletClient: SuperWalletClient; to: Address; value:
src/test/helpers/index.ts:121
↓ 2 callersFunctionsortAnnouncementsByChainRecency
( announcements: AnnouncementLog[] )
src/lib/actions/scanAnnouncementsForUserUsingSubgraph/scanAnnouncementsForUserUsingSubgraph.ts:97
↓ 2 callersFunctiontoPersistedAnnouncement
( announcement: Awaited< ReturnType< ReturnType<typeof createStealthClient>['getAnnouncementsForUs
examples/composeAnnouncementHistoryAndWatch/index.tsx:95
↓ 2 callersFunctionvalidateSubgraphUrl
( url: string, ErrorClass: ErrorConstructor )
src/utils/validation/validateSubgraphUrl.ts:16
↓ 1 callersFunctionassertAnnouncementsResponse
(response: unknown)
src/lib/actions/getAnnouncementsUsingSubgraph/subgraphHelpers.ts:214
next →1–100 of 202, ranked by callers