Skip to content

@armada/sdk / index / ReconstructHistoryInput

Interface: ReconstructHistoryInput ​

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

Properties ​

ownedTxos ​

readonly ownedTxos: readonly TXO[]

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


spentNullifiers ​

readonly spentNullifiers: readonly SpentNullifier[]

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


unshields ​

readonly unshields: readonly DecodedUnshield[]

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


sentOutputs ​

readonly sentOutputs: readonly SentOutput[]

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

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:237

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:238


shieldedAddress ​

readonly shieldedAddress: string

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

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:244

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:247

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:249

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