Skip to content

@armada/sdk / index / ReconstructHistoryInput

Interface: ReconstructHistoryInput

Defined in: src/sync/history.ts:169

Properties

ownedTxos

readonly ownedTxos: readonly TXO[]

Defined in: src/sync/history.ts:170


spentNullifiers

readonly spentNullifiers: readonly SpentNullifier[]

Defined in: src/sync/history.ts:171


unshields

readonly unshields: readonly DecodedUnshield[]

Defined in: src/sync/history.ts:172


sentOutputs

readonly sentOutputs: readonly SentOutput[]

Defined in: src/sync/history.ts:174

Notes the wallet authored (recovered sender-side) — recipient/fee detail of its own sends.


shieldRelayerFees?

readonly optional shieldRelayerFees?: ReadonlyMap<string, bigint>

Defined in: src/sync/history.ts:177

Per-txid relayer fee paid in a gasless shield we co-authored (issue #88 lever 2) — recovered from the Shield event's plaintext commitment values. Attached to the matching shield entry.


nullifyingKey

readonly nullifyingKey: bigint

Defined in: src/sync/history.ts:178


shieldedAddress

readonly shieldedAddress: string

Defined in: src/sync/history.ts:181

The wallet's own 0zk address — used to recognize sends addressed to self (a self-transfer, not an outgoing payment) so they aren't misreported as money leaving the wallet.


resolveToken

readonly resolveToken: TokenAddressResolver

Defined in: src/sync/history.ts:184

Resolve a token hash → ERC20 address for each entry (issue #90). Notes in an unresolvable token (non-ERC20 / NFT — out of scope) are skipped. Token-agnostic: every held ERC20 gets history.


usdcHash

readonly usdcHash: string

Defined in: src/sync/history.ts:187

Canonical 32-byte hash (no 0x) of USDC — the yield vault's asset; distinguishes a yield deposit (asset in / shares out) from a withdrawal (shares in / asset out). Not a scoping filter.


yieldAdapterAddress?

readonly optional yieldAdapterAddress?: string

Defined in: src/sync/history.ts:189

Yield adapter address (lowercased-compared); an unshield to it marks a yield op.